How do I use Dimension Offset?

How do I use Dimension Offset?

Anonymous
Not applicable
738 Views
5 Replies
Message 1 of 6

How do I use Dimension Offset?

Anonymous
Not applicable

So, I have the following line of code:

 

 

Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument

odoc.StylesManager.ActiveStandardStyle.ActiveObjectDefaults.LinearDimensionStyle.PartOffset=1.5

 

There are no errors thrown, it runs just fine.  However, nothing happens?

My dimensions do not move as expected.  What am I missing?

 

Inventor 2016

 

 

0 Likes
Accepted solutions (1)
739 Views
5 Replies
Replies (5)
Message 2 of 6

NSBowser
Advocate
Advocate
Accepted solution

The code you posted is working, in my test, exactly as expected.

However, what you expect it to do and what it does, I believe, are two different things.

 

The code is changing the object defaults in your current standard. This will not have any effect on dimensions that have already been placed, and in fact would not have any effect on new dimensions being placed programmatically, as far as I am aware.

 

This only affects where the dimension 'sticks' when you attempt to place it manually (that location where the dimension goes dotted and locks in nicely)

I don't think what you are trying to change will help you to accomplish what you are actually trying to do.

 

Here is what the result of your code does.

 

Stardards - Offset.jpg


Best of Luck

---------------------------------------------------------------------------------------------------------------------------------
If you find this reply helpful or insightful, please use the 'Accept as Solution' or 'Kudos' button below.
Message 3 of 6

Anonymous
Not applicable

NSBowser,

Thanks, you are currect.  It does work, and it appears that when one sets the offset first, then runs the alignment, the dimensions end up at the offset.

0 Likes
Message 4 of 6

Anonymous
Not applicable

NSBowser,

Thanks, you are correct.  It does work, and it appears that when one sets the offset first, then runs the alignment, the dimensions end up at the offset.

0 Likes
Message 5 of 6

NSBowser
Advocate
Advocate

This is the second answer I have given you where you have marked YOUR OWN RESPONSE as the solution.

 

I will accept that if you would take the time to go back through the numberous other posts where you did not give the solution posters (not myself in other cases) the credit for thier time and effort.

 

Thanks, (sorry for the aggressive nature of my post, but this 'glitch' is a sore spot of mine)


Best of Luck

---------------------------------------------------------------------------------------------------------------------------------
If you find this reply helpful or insightful, please use the 'Accept as Solution' or 'Kudos' button below.
0 Likes
Message 6 of 6

Anonymous
Not applicable
Um, sorry, I didn't know that I was marking my own response as an answer??? I thought I was just supposed to click on the last box???




[jacob-baum-signature][facebook1][twitter1][linkedin1]
0 Likes