Models iproperties for titleblock

Models iproperties for titleblock

Anonymous
Not applicable
361 Views
5 Replies
Message 1 of 6

Models iproperties for titleblock

Anonymous
Not applicable

Hello,

 

I am using the model's iproperties to fill in my titleblock. I guess it is a well known way to handle this titleblock information?

I would like to modify this information from the drawing (dwg) without every time have to open the assembly or part that is displayed in the drawing. Is that possible? I am sure this is an often asked request?

 

BR, Johan

0 Likes
362 Views
5 Replies
Replies (5)
Message 2 of 6

dgreatice
Collaborator
Collaborator

Hi, yes it possible.

please give specific information what do you want.

Please use the ACCEPT AS SOLUTION or KUDOS button if my Idea helped you to solve the problem.

Autodesk Inventor Professional Certified 2014
Message 3 of 6

Anonymous
Not applicable

Thx.

The models always contain the same custom iproperties that are used to fill in the titleblock

 

ACME_TITLE

ACME_DESCRIPTION

ACME_DRAWING

ACME_SIZE

ACME_TYPE

0 Likes
Message 4 of 6

dgreatice
Collaborator
Collaborator

try this:

 

oDoc = ThisDrawing.ModelDocument
oCustPropSet = oDoc.PropertySets(4)
For Each oProp In oCustPropSet
Select Case oProp.Name
Case "ACME_TITLE"
ValueProp = InputBox("ACME_TITLE", "INPUT FIELD", oProp.value)
oProp.value = ValueProp
Case "ACME_DESCRIPTION"
ValueProp = InputBox("ACME_DESCRIPTION", "INPUT FIELD", oProp.value)
oProp.value = ValueProp
Case "ACME_DRAWING"
ValueProp = InputBox("ACME_DRAWING", "INPUT FIELD", oProp.value)
oProp.value = ValueProp
Case "ACME_SIZE"
ValueProp = InputBox("ACME_SIZE", "INPUT FIELD", oProp.value)
oProp.value = ValueProp
Case "ACME_TYPE"
ValueProp = InputBox("ACME_TYPE", "INPUT FIELD", oProp.value)
oProp.value = ValueProp
End Select
Next
odoc.Save

Please use the ACCEPT AS SOLUTION or KUDOS button if my Idea helped you to solve the problem.

Autodesk Inventor Professional Certified 2014
Message 5 of 6

Anonymous
Not applicable

Thanks, it kind of works, but it is not that stable. i mean, there is no real-time update between the model's iproperties and the titleblock information. Sometimes all iproperties are blank after running and cancelling your script.

0 Likes
Message 6 of 6

dgreatice
Collaborator
Collaborator

add more line after oDoc.Save:

 

InventorVb.DocumentUpdate()

Please use the ACCEPT AS SOLUTION or KUDOS button if my Idea helped you to solve the problem.

Autodesk Inventor Professional Certified 2014
0 Likes