Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-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
Joined
Sep 3, 2004
Messages
9
Location
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
 
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.

Part and Inventory Search

Sponsor

Back
Top