cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Copy Masterdata Attribute to Drawing Attribute During Save

DanAdler
13-Aquamarine

Copy Masterdata Attribute to Drawing Attribute During Save

How can I fill in a Drawing_2d attribute with an existing Masterdata attribute automatically when a new drawing is created?

1 REPLY 1
lfortner
13-Aquamarine
(To:DanAdler)

I had the same question and I solved it with a Model Manager custom code.
At save time, the ultimate occasion to setup attributes are to use preApplyListener.
I designed a drawing preApplyListener to detect the save from Annotation situation. The drawing.getPartUsedInSave() method gives access to the releavant masterdata to get attributes values from.
But beware the order of listener: model3d, drawing2d and masterdata.

Announcements


Top Tags