Added properties from p'art to title block using Macro
Added properties from p'art to title block using Macro
(OP)
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
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





RE: Added properties from p'art to title block using Macro
Try to use your macro recorder while editing your custom properties. This way you'll see the code required.
-Bjod
RE: Added properties from p'art to title block using Macro
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
RE: Added properties from p'art to title block using Macro
I have to type this
DrwTexts.GetItem("TitleBlock_Text_Drawing_number").Text = ProductDrawn.UserRefProperties.Item("Drawing number").value
Again Bjod
thanks of lot