Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Iam using ProDrawingDtlsyminstVisit()to visit all the symbol instances in the drawing. then i am checking whether that symbol instance is attached or not by ProDtlsyminstdataAttachmentGet.if a symbolattachment typeis PRO_DTLATTACHTYPE_FREE then simply highlight it. so inshort i am trying to highlight symbols which are free or dangling in the drawing. The issue is, ProDrawingDtlsyminstVisit() requires a filter function in this function i am checking whether the symbol is displayed or not by using ProDtlsyminstdataIsDisplayed()(if true i.e displayed then simply check is itPRO_DTLATTACHTYPE_FREE if yes highlight,not thenignore it)but i am getting few symbol instances which are not alldisplayed in the drawing and their attachment type is PRO_DTLATTACHTYPE_FREE. to verify thisi am printing the name of symbol when its attachment type isPRO_DTLATTACHTYPE_FREE. Can any one guide me, whats going wrong in this.? Is it because that i have some symbols which are erased and not deleted. but still ProDtlsyminstdataIsDisplayed() must be able to capture this and return False for this.
Try using ProAnnotationIsShown() to check if symbol is visible on drawing.