Message 1 of 3
How to show only reference dimensions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
i use ilogic for drawing dimentions. but i don't need all of them. Thats why a make a new sketch with reference dimentions. Those dimansions parameters ends with "_REF". I've tryed to use a code, which shows dimentions depends of parameter names, but it works not for reference dimentions. How can i mike it posable to use if for reference parameters too?
For Each oView In oViews oRetDims = oDims.GetRetrievableDimensions(oView) If oRetDims.Count > 0 Then dimsEnum = oDims.Retrieve(oView) For Each oDim In dimsEnum If oDim.Retrieved Then paramName = Dim.RetrievedFrom.Parameter.Name If Not paramName.EndsWith("_REF") Then oDim.Delete End If End If Next End If Next
Thanks from Atomic Z
Have a nice day ☺