AnsweredAssumed Answered

How to Check if the Dimension is Linked with Breakline of the Drawing?

Question asked by Akash Bansude on Jul 25, 2019
Latest reply on Oct 4, 2019 by Akash Bansude

I have a UseCase To check If The Display Dimension is Linked with Breakline in code :


Drawing : 


UseCase :

  1. I have a code that Iterates through the Drawing, Sheets , Views and Dimensions.
  2. I need to get the list of Dimensions in a View with a check if the Given Dimensions are Linked with Breakline.
  3. I am trying to filter out dimension which are linked with the Drawing View Breaklines from other dimension in the View.

  4. I will be manipulating these dimensions, in later as required.


THINGS Tried :

  1. I tried using Annotations-GetAttachedEntityTypes() 
  2. Tried Comparing with swSelectType_e SolidWorks.Interop.swconst.swSelectType_e.swSelBREAKLINES ENUM
  3. These ENUM return : swSelEDGES and swSketchSegment (corresponding to breakline)
  4. But, None of Attached Entities Match with Breakline ENUM.



Is there is method by which I can check if the Display Dimension is linked with Breakline with C# Code ?




Is there any way I can determine if the source of Above SketchSegment is BreakLine ?

(This would confirm that the Dimension would be the Breakline Dimension)