Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Added properties from p'art to title block using Macro

Status
Not open for further replies.

roe

Structural
Sep 3, 2004
9
0
0
SI
I want to get Added properties from part to Title block.
I am using Macro. I do not know how i can link added properties from part to title block using macro
Example:

'How to fill in texts with data of the part/product linked with current sheet

DrwTexts.GetItem("TitleBlock_Text_Number_1").Text = ProductDrawn.PartNumber
DrwTexts.GetItem("TitleBlock_Text_Title").Text = ProductDrawn.Definition

This two row are OK but i do not know go on for added properties from part
 
Replies continue below

Recommended for you

Hi there.

Try to use your macro recorder while editing your custom properties. This way you'll see the code required.

-Bjod
 
Thank bjod
I do not know which code is for drafting
I try this
DrwTexts.GetItem("TitleBlock_Text_Drawing_number").Text = ProductDrawn.UserRefProperties("Plo?a\Properties\BrojNacrta")
Macro does not work in drafting
Can zou help me
 
I got it

I have to type this
DrwTexts.GetItem("TitleBlock_Text_Drawing_number").Text = ProductDrawn.UserRefProperties.Item("Drawing number").value

Again Bjod
thanks of lot
 
Status
Not open for further replies.
Back
Top