Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
DeerSpotter
411 Views, 3 Replies

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

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
mcgyvr
in reply to: DeerSpotter

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
DeerSpotter
in reply to: mcgyvr

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
mcgyvr
in reply to: DeerSpotter


@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