Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I want to sum a custom parameter in Iproperty, from IPT & IAM to IDW

1 REPLY 1
Reply
Message 1 of 2
fabiangaitan
352 Views, 1 Reply

I want to sum a custom parameter in Iproperty, from IPT & IAM to IDW

I want to sum a custom parameter "MassWeld1", from IPT & IAM for create an Custom Iproperties in IDW "MassWeld2", I can create MassWeld1 in models, but is complicate for mi, the creating MassWeld2 in IDW, who sum the differents MassWeld1 of model (This Parameter move with material of model)
1 REPLY 1
Message 2 of 2
RodrigoEiras
in reply to: fabiangaitan

 

Hi fabiangaitan,

 

Please find below an example that allows you to take an iproperty from the assembly shown in a drawing and copy it into a new iProperty in the drawing.

 

It takes the part number from the assembly shown in the drawing and creates an iProperty in the drawing called PropertyName to store this value.

 

The addition of the different items should be done maybe at an assembly level. It is not very clear to me what you exactly were intending to do.

 

SyntaxEditor Code Snippet

Dim oDrawingDoc As Inventor.DrawingDocument
Dim sText As String

oDrawingDoc = ThisApplication.ActiveDocument

sText = iProperties.Value(ThisDrawing.ModelDocument, "Project", "Part Number")

iProperties.Value(oDrawingDoc , "Custom", "PropertyName")= sText

 

 

I hope this can help you.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report