×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Parameters

Parameters

Parameters

(OP)
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?

RE: Parameters

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

RE: Parameters

(OP)
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.

RE: Parameters

Inventor uses VBA as it's macro programming language.
Most people currently use VB6 to write add-ins.

RE: Parameters

(OP)
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?

RE: Parameters

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources