Jump to content

Recommended Posts

Posted

I just can not seem to find a easy answer to this, it appears that you entmake a dim style then apply over rides, I want to just set the arrow heads to ArchTick. 

 

The dxf code refers to 

(cons 5 "ArchTick") ; dimblk
(cons 6 "") ; dimblk1
(cons 7 "") ; dimblk2

Just does not set them, tried all sorts of combos using "" as well. 

 

The dim is created with a correct entmake like 30 dim variables. All other settings are correct size, color.

 

Manually changing the dimstyle and changing the arrows reveals the correct dxf 5 6 7 as wanted using entget etc. 

(5 . "ArchTick") (6 . "") (7 . "")

 

In VL there is Arrowblk1 and can change that but to a existing dimension not a style. Interesting use numbers not alphas. ArchTick is 5

 

Posted

Thanks I did have 342 343 344 this in a mega entmake. The tblobjname is not working and the help refers to the handle.

 

(cons 342 (cdr (assoc 330 (entget (tblobjname "block" "_Oblique"))))); DIMBLK

 

OK found the answer (tblobjname "block" "_Oblique") may work it seems that the block say "_Oblique" does not exist till such time as you modify the arrow head in a existing style or the simplest way around seems to be use (setvar 'DIMBLK ,1 & 2 to what you want 1st. Then entmake using 342 343 344. 


 

  • Like 1
Posted

Just to weigh in my 2¢ worth. I used to work with dims with overrides (usually just the text) all the time using LISP. I was often advised by experienced programmers to use entmake for dimensions, but I found much simpler methods along the way. For example, my routine only has about 4 or 5 lines of code but entmake required 20 lines or more. It all depends on an individuals needs, but for me I preferred the simpler method which just used the dim commands. If you wanted, you can even setup a DIMSTYLE and then set this is CURRENT before you run your LISP code. Then your dimensions with your desired properties will be used as default.

  • Like 1
Posted

All the dimension styles I use on a regular basis are in my default qnew template. I have a macro to import them whenever I need them in a drawing that wasn't created from it using Lee Mac's Steal from Drawing lisp: 

^C^C^P(or C:Steal (load "StealV1-8.lsp"))(Steal (strcat (vl-filename-directory (getenv "QnewTemplate")) (chr 92) "AutoCAD Template" (chr 92) "Templates.dwt") '(("Dimension Styles"("*")))) .regen

 

Posted

The issue is, this is not for me, its for a client so have to build in contingencies, its not much good putting an alert "Go away and get correct dim style" when handed to the new drafty who knows nothing but the end result must match company standards. That is why they want it. 

 

It just appears to be one of those buggy things with the dim arrows. 

 

I have added missing dim styles, layers, mlines and text styles. happy if someone can still entmake the correct arrow blocks.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...