Assigning a different "ArrowheadType" to an existing Radial Dimension

Assigning a different "ArrowheadType" to an existing Radial Dimension

scot-65
Advisor Advisor
682 Views
12 Replies
Message 1 of 13

Assigning a different "ArrowheadType" to an existing Radial Dimension

scot-65
Advisor
Advisor

We use an architectural tick as our one and only dimension style.

This does not work well with Angular, Arc Length, Diameter, Jogged, and Radial.

 

scot65_0-1747251569181.png

 

I am able to successfully use SETPROPERTYVALUE to update all arrowhead types for all existing dimension objects except Radial.

 

Changing "ArrowheadType" to a different value does not update the Radial object.

 

Any insight how to accomplish this?

Using DUMPALLPROPERTIES, I noticed "DimBlockId" and "Dimblk" changes when manually changing from within the Properties pane, but these are (type: AcDbObjectId).

 

Sure, I can set an override DIMBLK and invoke command -DIMSTYLE "Apply", but what fun is that?

 

For those looking for the name of the dimension object:

(vla-get-ObjectName (vlax-ename->vla-object (car (entsel))))

 


Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
683 Views
12 Replies
Replies (12)
Message 2 of 13

paullimapa
Mentor
Mentor

only works on radial dimensions:

(vla-put-ArrowheadType (vlax-ename->vla-object (car(entsel))) 0) ; closed arrow
(vla-put-ArrowheadType (vlax-ename->vla-object (car(entsel))) 1) ; open arrow

paullimapa_1-1747254712033.png

 

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 13

Sea-Haven
Mentor
Mentor

This is where I got some of the other arrow numbers 4 is architectural tick. 

 

SeaHaven_0-1747276546724.png

 

 

0 Likes
Message 4 of 13

Moshe-A
Mentor
Mentor

@scot-65 hi,

 

The dimension style system is so strong that no need for lisp or any automation for that.

 

Dimstyle has a family tree and that means the there is a father dimstyle and its sons 😀

in dimstyle dialog when you select your (already defined) dimstyle, pick new button at

the Create new dimension style dialog at the button you have "use for" combo box pick it to reveal its options and select Linear dimensions and click Continue, this will take to to modify dimstyle there you set your architectural tick arrow heads. when back in dimstyle dialog you will see it under your father dimstyle the Linear son dimstyle.

 

and what that does? it's beautiful?

when you draw a linear dimension, it will be comply with the linear, for all other dimension it will comply with the father with arrow head - isn't that big? 😀

(as far as i remember, this family feature exist in AutoCAD even under DOS operating systems)

 

Moshe

 

 

0 Likes
Message 5 of 13

scot-65
Advisor
Advisor

@paullimapa 

I am trying to replace arrowhead type "tick.dwg" with "tick2.dwg".

 

; error: lisp value has no coercion to VARIANT with this type: "tick2"

 

Other "ticks" we use include Dot and a Barb (direction).


Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
Message 6 of 13

scot-65
Advisor
Advisor

@Moshe-A 

 

I believe the dimstyle dialog first appeared in R14 (or perhaps R13). I do remember having to memorize all

the dimvars while I was using R10 thru R12. You could be correct though. Another new gray hair today.

 

When I did see the dialog, I purposely stayed away from it as it was difficult to determine weather the

setting was saved with the dimension style or the setting became an override. I stuck with the command line.

 

The family tree does look promising. I was able to create children for the radial, angular, and diameter (and leader).

However Jogged is not part of the definition. 😞

Also, the arc length object should have arrowheads instead of ticks but no child is available for this object either.

>>> Do we UPVOTE this? <<<     R2024 LT

 

scot65_0-1747320660179.png

 

Next step if employing this method:

How do I hard code the parent/child tree as I have a utility that will reset the dimension style.

Yes, the kids do go inside and tinker with the settings and this reset utility is invaluable to keep

within our standards.

 

If I cannot hard code, how to import the tree?

 

Yes, we have a template that I can (re)create the tree, but need another method for our older drawings.

 


Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
Message 7 of 13

paullimapa
Mentor
Mentor

assume you've already inserted tick2.dwg into the dwg, try this:

(vla-put-ArrowheadBlock (vlax-ename->vla-object (car(entsel))) "Tick2")

Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 8 of 13

Moshe-A
Mentor
Mentor

@scot-65 ,

 

to tell you the truth, i remembered you been expert here surprised to see that you are did not remembered family dimstyles now i understand it is a new gray hair 😀

 

anyway why do you need all child members just create the childes that use architectural tick. 

 

Moshe

 

0 Likes
Message 9 of 13

scot-65
Advisor
Advisor

@Moshe-A 

 

In our discipline, one drawing type, for the most part, will employ the radial dimension in at

least two instances and will make up less than 3% of the total number of dimension objects

for that drawing. All other non-linear dimension types are not used (angular, diameter, jog,

arc length) with exceptions.

 

All of our other 12 drawings (plans and elevations) will use the architectural tick.

Why make the tick a child when it is a primary?

 

And I had to look it up...

There was no command "DDDIM" or DDIM" in R12. If you remember, any dialog in R12 started

with the characters "DD". Do you remember "DDLMODES"? I pulled that stunt on one employee

and he did not know what DDLMODES meant (and it was an unknown command).   🙂

 

There are still a few of us first-gen EE members floating around. This is the only board I will visit.   😉

At the time I started posting questions to the AutoDesk forums, I made it a personal rule to provide

guidance to at least 4 other threads before I post another question. After a while I learned that I was

chosen as an EE member.

 


Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
Message 10 of 13

scot-65
Advisor
Advisor

@paullimapa 

 

I think that did the trick.

Many thanks to you.   🖖

 

 

vla-put-Arrowhead1Block
vla-put-Arrowhead1Type
vla-put-Arrowhead2Block
vla-put-Arrowhead2Type
vla-put-ArrowheadBlock

 


Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
Message 11 of 13

paullimapa
Mentor
Mentor

You are welcome…cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 12 of 13

paullimapa
Mentor
Mentor

FYI: DDIM was one of the many DD commands first introduced in R12 when customized dialog boxes came onto the scene…so yes many more gray hairs 

https://autodesk.blogs.com/between_the_lines/ACAD_R12.html


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 13 of 13

Moshe-A
Mentor
Mentor

@scot-65 

 

All of our other 12 drawings (plans and elevations) will use the architectural tick.

Why make the tick a child when it is a primary?

 

Say you have a dimstyle with only Linear as a child, the family works like this:-

if you use dimlinear\dimaligned commands, AutoCAD will use the Linear child, for all other dimensions it will use the Father which is set with arrow head.

 

There was no command "DDDIM" or DDIM" in R12. If you remember, any dialog in R12 started

with the characters "DD". Do you remember "DDLMODES"? I pulled that stunt on one employee

and he did not know what DDLMODES meant (and it was an unknown command).   

 

of course i remember these commands DDxxxxx commands but they all become obsolute some where in first years of 2000.

i even remember DIM1 prompt 😀

 

Moshe

 

 

0 Likes