You are on page 1of 2

1/12/2015

ProEandExcelPTC:CreoParametric(Pro/ENGINEER)EngTips

Home>Forums>EngineeringComputerPrograms>EngineeringPrograms>PTC:CreoParametric
(Pro/ENGINEER)Forum

ProEandExcel

thread554370045
ShareThis

Brilliant Cricket Stories


Share it with Hyundai & Watch ICC World Cup 2015 Live in Aus/NZ.

Dearall:
Ineedtolinkasimpleproeassemblywithanexternal
excelsheet.inawaythatifisuppressanycomponentinexcel
sothattheproewillactaccordinglywhileregeneratingupdatesfrom
theexcelsheet.Cananyonehelpmeinthis.

Yes.Youcanaddcomponentsasitemsinafamilytablethenswitchthemonandoffintheassemblyusingthefamily
table.CreatingthefamilytablebyaddingcomponentstoitcreatesYes(Y)andNo(N)parametersthateffectively
suppressorresumecomponents.InExcel,youcanchangetheYandNparameterstoNandYtosuppressoneand
resumetheother.AsfarasIknowthereisnolimitonhowmanycomponentsyoucanaddtothefamilytableinthis
way.TheoptiontoeditthefamilytablewithExcelshouldappearwhenyouchoosetoeditthefamilytable.

Tunalover

junaidyusfzai
Thespreadsheetsimplypopsupasanoptionwhenyouenterthefamilytable.Idon'tthinkyoucankeepthe
spreadsheetasaseparatedocumentexternaltothemodel.
Tunalover

thankstunaloverforhelp.Iamthinkinghereabitdifferently.MyintentionsarethatIwilladdfeaturesinassemblyand
simplyapplytheifelseconditioninProEprogramcodebeforethefeature.andusethatfeatureidinexcelsheetwithY
orNoption.Thusithinkofnotusingthefamilytables.
Yes,youcan"link"anExcelspreadsheettoPRO/Engineerandkeepthatasaseparatedocumentexternaltothemodel.
AssoonasyourassemblyhasanyINPUTparameters,youwillhavetheoptionto"ReadFile"whenyouregenerateyour
model.
SocreatethesethreeINPUTparametersinyourassembly
INPUT
MY_PARAMETER_NAME_1NUMBER
MY_PARAMETER_NAME_2YES_NO
MY_PARAMETER_NAME_3STRING
ENDINPUT
Next,createatextfile:
MY_PARAMETER_NAME_1=500
MY_PARAMETER_NAME_2=YES
http://www.engtips.com/viewthread.cfm?qid=370045

1/2

1/12/2015

ProEandExcelPTC:CreoParametric(Pro/ENGINEER)EngTips

MY_PARAMETER_NAME_3="SOMETEXT"
Savethistextfileas:"c:\temp\input.txt"
Regenerateyourassembly,chooseReadFile,andenter"c:\temp\input.txt"
CheckthevaluesofyourINPUTparameters,theyshouldbelikethevaluesfromthetextfile.

FromExcel:
IfyouwanttodothisfromExcel,youmustwriteasimplemarcowhichcreatesthe"input.txt"file.Inourcase,we
createanOUTPUTworkheetwhichholdsthreecolumns.ColumnsAholdstheNAMEoftheparameter,columnBholds
theequalsign("="),columnCholdstheactualvalue.Themacromustcombinethosethreecolumnstoatextlineand
writeittothe"input.txt"file.
WithinPRO/E:Createamapkeywhichwillexecutethesesteps:Edit>Regenerate>ReadFile>
"c:\temp\input.txt"
Youcanalsocreateabuttonwhichwillexecutethatmapkey.
HTH!
toobadthatcreodoesn'tincludeaproperexcelinterfacelikeothercadpackages(solidworks,evencatiaithink)do.
probablyaremnantfromthelinuxera.
Pro/EwasinitiallyreleasedbeforeWindowsNTandlongbeforeLinux.IthinkitisstillsupportedonUNIX,whichExcel
isn't.
http://communities.ptc.com/thread/3147mayhelpseethehttps://docs.google.com/open?
id=0B7FbUNiqT_LMjgxZ...linkformoreinformation.

DriveWorks Free Trial


Automate Your SolidWorks Design Process with DriveWorks Solo.

Join|IndeedJobs|Advertise
Copyright19982015ENGINEERING.com,Inc.Allrightsreserved.
Unauthorizedreproductionorlinkingforbiddenwithoutexpressedwrittenpermission.

http://www.engtips.com/viewthread.cfm?qid=370045

2/2

You might also like