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

Replace the model in drawing using Jlink

Highlighted
Level 6

Replace the model in drawing using Jlink

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.

Tags (3)
1 REPLY 1

Re: Replace the model in drawing using Jlink

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 Smiley Happy

ps_draw replace srcMdl tarMdl ?unrepresent_ok?