Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! 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?