De-attach or Un-Attach all dims in drawing Ilogic?

De-attach or Un-Attach all dims in drawing Ilogic?

DeerSpotter
Collaborator Collaborator
436 Views
3 Replies
Message 1 of 4

De-attach or Un-Attach all dims in drawing Ilogic?

DeerSpotter
Collaborator
Collaborator

I need help detaching all dimensions from all views. It's easier for me to move those dims to the correct views when switching out the model reference than having those dims deleted and start again.

What i am trying to accomplish:

doc = ThisDoc.Document
        
'iterate each dimension  
Dim oEachDim As DrawingDimension
For Each oEachDim In doc.ActiveSheet.DrawingDimensions
If oEachDim.Attached Then
oEachDim.Attached = False
   EndIf
Next

doc.Update

I am aware i made up a few commands, if anyone can help me understand this, or even offer a other suggestion i am open ears.

Thanks!

Image and video hosting by TinyPic
..........................................................................................................................
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
..........................................................................................................................


See My LinkedIn Profile
0 Likes
437 Views
3 Replies
Replies (3)
Message 2 of 4

mcgyvr
Consultant
Consultant

I don't think you can "detach" dimensions..

You can certainly delete and you can check if they are attached or not but I don't think there is a command to detach them...



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 3 of 4

DeerSpotter
Collaborator
Collaborator

The same way when a dimension turns pink because it cant find a model or a reference point.

Image and video hosting by TinyPic
..........................................................................................................................
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
..........................................................................................................................


See My LinkedIn Profile
0 Likes
Message 4 of 4

mcgyvr
Consultant
Consultant

@m.teleguz1 wrote:

The same way when a dimension turns pink because it cant find a model or a reference point.


Sorry I wasn't clear.... "With ilogic"... should be added to my statement..

I know a dimension can become detached.. I just don't know if there is an ilogic way to do that.. 

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes