Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parameters

Status
Not open for further replies.

Tmoz

Mechanical
Mar 9, 2007
11
I work with inventor 11 and i have a question about Iproperties. I know how i can get an width en length value in the properties, but i wander if I can combine the to values in one parameter.
Example:
lengte: 400 mm
width: 200 mm
My_new_parameter= "400x200mm"

Is it possible to create the "my_new_parameter" with the lengte and width combined?
 
Replies continue below

Recommended for you

Yes.

Typically like this -

Dim strWidth As String
Dim strLength As String
Dim strSize As String

strWidth = "200"
strLength = "400"
strSize = strWidth + " x " + strLength

oCustomPropSet.Item("Sheet Size").Value = strSize
 
I must write an marcro for it? But than i must activate the macro every time a width of length has changes?
ps: My width and heigth are a dimmension?

I don't have any experience in write an macro or vba. I have experience in some other program language.
 
Inventor uses VBA as it's macro programming language.
Most people currently use VB6 to write add-ins.
 
But how do i inplement the code that you said here above in my parts or assemblies? Must I run it al the time i've changed a thing? Or can it be done automaticly?
 
We have an add-in that runs when the "On Save" fires and creates the custom property, updating it for any changes.

With respect to this forum, you'd be better off using Autodesk's Inventor Customisation forum where you can get responses from Autodesk staff and independent Inventor guru's.

People will also expect you to read the Inventor help files and the samples provided with Inventor.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor