Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
How to replace the model of same family member in drawing?
How to convert an instance into a model using Jlink APIs, so that I can replace?
In a drawing(.drw), I want to replace the drawing model with another model(instance) of same family using Jlink APIs. How to proceed?
Thanks in advance.
The method pfcModel2D.Model2D.ReplaceModel replaces a model in the drawing with a related model (the relationship should be by family table or interchange assembly). It allows you to replace models that are shown in drawing views and regenerates the view.
Similarly, the method pfcFamily.FamilyTableRow.CreateInstance returns an instance model created from the information stored in the FamilyTableRow object.
In tcl
ps_draw replace srcMdl tarMdl ?unrepresent_ok?