Submitted by dmenz on Mon, 06/02/2014 - 09:38
Forums:
Hello,
I'm trying to hide components in drafting views, but this components vary according to the sheet in which the view is located. I already have the code to hide the specific components in the specific view, but I'm struggling at the sheet selection.
Can someone please help me with this condition?
How can I formulate my IF so that it only searches in that specific sheet?
Thanks
re: drawing views
Once you have a reference to a drawing sheet, you can get the views by using the .SheetDraftingViews property. This is a collection of views that belong to that particular sheet.
re: drawing views
Thank you for answering, I don't quite understand how to reference to the drawing sheet, I have this code.
Dim laSheet As DrawingSheet = wp.DrawingSheets().CurrentDrawingSheet
For Each vista As DraftingView In laSheet.SheetDraftingViews
its this correct? or how can I make the reference?
Thanks
Automative
drawing views
I already figure it out. The way that I post earlier is correct. The mistake was in other part of my code.
Thank you very much for the attention Mr. NxJournaling.
Automative
regard calculation of No.of Symbols in Drawing sheet
Suppose I have 10 drawing sheet in my workpart, Each drawing sheet has diffrent number of symbols,
I want to know no .of symbols in each sheet wise. it has to dispaly message like no of sysmbols in current drawing after the message it should go to next sheet as well display (active) in current window. when ever I used to get information of symbols it's going through entire workpart and giving no.of symbols used in all drawing sheet
For Each sheet As Drawings.DrawingSheet In workPart.DrawingSheets
sheet.open()
For Each tempID As Annotations.IdSymbol In workPart.Annotations.IdSymbols
Instead of " For Each tempID As Annotations.IdSymbol In workPart.Annotations.IdSymbols" I used
For Each tempID As Annotations.IdSymbol In sheet.Annotations.IdSymbols, error with "sheet" variable not declared in workpart not declared
what shpould I do for the above requirement
Gopal Parthasarathy
CERT/FEA Engineer
B/E Aerospace