Part name based on parameter values

Part name based on parameter values

Anonymous
Not applicable
299 Views
1 Reply
Message 1 of 2

Part name based on parameter values

Anonymous
Not applicable

Hi, I am fairly new to inventor & just getting to grips with ilogic & have a question;

I have a simple ilogic driven part, which upon opening, the form opens & I can type in (say) Project number, Height, Width, & Length, & the part updates.

 

What I would really like to be able to do next is to have a rule that saves the part with a name that is based on the project number plus the parameters (h**, w**, l**) that set the dimensions of the part. So the part name would look like "Project123 part H**W**L**"

 

How is the best way to achieve this? (simply!)

TIA

Mark

0 Likes
300 Views
1 Reply
Reply (1)
Message 2 of 2

JaneFan
Autodesk
Autodesk

Hi Mark,

 

This might be what you need. Make sure you have parameters Length, Width and Height in your part model, then run the iLogic rule:

Dim filename As String
filename = iProperties.Value("Project", "Part Number") + _
            "_H" + CStr(Parameter("Height")) + _
            "_W" + CStr(Parameter("Width")) + _
            "_L" + CStr(Parameter("Length")) + ".ipt"

ThisDoc.Document.SaveAs("c:\temp\" + filename, True)




Jane Fan
Inventor/Fusion QA Engineer