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

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

Replace the model in drawing using Jlink

Gokulraj26
5-Regular Member

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.

1 REPLY 1
RPN
17-Peridot
17-Peridot
(To:Gokulraj26)

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?

 

Announcements


Top Tags