Skip to main content
1-Visitor
February 14, 2020
Question

remove symbol

  • February 14, 2020
  • 1 reply
  • 1607 views

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

1 reply

14-Alexandrite
February 14, 2020

Get location:

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

Delete Symbol:

  • ProDtlsyminstErase()
  • ProDtlsyminstDelete()
Sekar11-VisitorAuthor
1-Visitor
February 14, 2020

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?

 

 

 

 

14-Alexandrite
February 14, 2020

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...