BIGAL Posted September 25, 2021 Posted September 25, 2021 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 Quote
Steven P Posted September 25, 2021 Posted September 25, 2021 I was curious so I looked, saw this: https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/entmake-a-dimstyle-specifying-font/td-p/10342306 which links to: https://help.autodesk.com/view/ACD/2021/ENU/?guid=GUID-F2FAD36F-0CE3-4943-9DAD-A9BCD2AE81DA "5, 6, 7th group codes are obsolete, now object ID" Not sure if that helps? Look at groups 342, 343, 344? Quote
BIGAL Posted September 26, 2021 Author Posted September 26, 2021 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. 1 Quote
Bill Tillman Posted October 1, 2021 Posted October 1, 2021 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. 1 Quote
tombu Posted October 2, 2021 Posted October 2, 2021 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 Quote
BIGAL Posted October 2, 2021 Author Posted October 2, 2021 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. Quote
tombu Posted October 2, 2021 Posted October 2, 2021 Maybe: https://www.theswamp.org/index.php?topic=36524.msg415255#msg415255 Quote
Recommended Posts
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.