Inventor Customization

Inventor Customization

Reply
Member
mccormick8863
Posts: 3
Registered: ‎09-19-2012
Message 1 of 2 (166 Views)

Dimension Selection

166 Views, 1 Replies
09-27-2012 01:34 PM

How would I go about writing this macro? For the BOM in a drawing, one of the fields is the finish size of each part. I want this to be a parametric value and adjust if the model is modified. This would not be for standard parts, only for fabricated items, so the material type would be limited to four units of input: Type (recangular or round, rectangular being blank and round storing the alt0216 Ø), Height, Width, and Length. Each of these would be stored in an iProperty, say DimensionType, DimensionHeight, DimensionWidth, and DimensionLength. Then, each parameter would be exported for variable use in the final dimension storage iProperty called Dimensions (or use vba to write in the Dimension iProperty). I would like to be able have a form pop up with a dropdown box for type, and three text boxes for each of the sizes. Then, click on the dimension that I would like to use which would return the parameter name for that dimension and put it in the text box which will store it in the appropriate iProperty.

 

Thanks for the help!

ADN Support Specialist
Vladimir.Ananyev
Posts: 531
Registered: ‎08-14-2012
Message 2 of 2 (133 Views)

Re: Dimension Selection

10-12-2012 05:02 AM in reply to: mccormick8863

 

Can export parameter solve your problem?  This property makes parameter be exposed as an iProperty with the same name. Link is associative.  :smileyhappy:

In Inventor 2013  you may easily create iLogic form to change parameters values (multi-value too).

ParametersExported.PNG


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.