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 PTC Community Badges. Engage with PTC and see how many you can earn! X

remove symbol

Sekar1
12-Amethyst

remove symbol

Hi,

 

Some one please suggest me c++ toolkit api to get the location of a symbol and also remove symbol from that particular location .

 

Thanks and regards,

Sekar

3 REPLIES 3
FabianWolf
12-Amethyst
(To:Sekar1)

Get location:

  • ProDtlsyminstDataGet()
  • ProDtlsyminstdataAttachmentGet()
  • ProDtlattachGet() -> Fourth output argument is location vector

Delete Symbol:

  • ProDtlsyminstErase()
  • ProDtlsyminstDelete()
Sekar1
12-Amethyst
(To:FabianWolf)

Hi,

 

Thank you so much. 

I am clear about the below apis.

  • ProDtlsyminstdataAttachmentGet()
  • ProDtlattachGet() 

I have some doubt about ProDtlsyminstDataGet().

I have gone through the sample code given for ProDtlsyminstDataGet() api. As per my understand, the user has to select the symbol instance.

 

Is it possible to collect all symbols in a particular drawing (without user selecting symbol)?

If possible , could you please guide me on this?

 

 

 

 

FabianWolf
12-Amethyst
(To:Sekar1)

You can use ProDrawingDtlsyminstsCollect() to collect all symbol instances of a drawing sheet.

ProDrawingSheetsCount() gives you the number of sheets in the drawing. So, call ProDrawingDtlsyminstsCollect in a for loop for each sheet.

ProDtlsyminstDataGet() returns the data belonging to the corresponding symbol. It doesn't matter whether the ProDtlsyminst was gathered via ProSelect or via ProDrawingDtlsyminstsCollect or via ProModelitemInit() or...

Top Tags