Author Topic: Help with this code?  (Read 6709 times)

0 Members and 1 Guest are viewing this topic.

AIberto

  • Guest
Re: Help with this code?
« Reply #15 on: September 09, 2015, 03:56:31 AM »
How make it update ?
Try vla-update.


oh! my post at #7
http://www.theswamp.org/index.php?topic=45247.msg552477#msg552477
if need use vla-update , No need accomplish this by supplying extended,

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Help with this code?
« Reply #16 on: September 09, 2015, 06:49:13 AM »
oh! my post at #7
:-D
And yes, I would also switch to Visual Lisp to create and modify the leader. Much easier.

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Help with this code?
« Reply #17 on: September 22, 2015, 06:32:36 AM »
For reference:
There is an issue with the built-in blocks for DIMBLK, DIMLDRBLK, DIMBLK1 and DIMBLK2 when using setvar/getvar.

From an answer to one of my BricsCAD Support Requests:
Quote
I verified in AutoCAD 2014 :
Command: (tblsearch "BLOCK" "_ARCHTICK")
nil
Command: (setvar "DIMBLK" "_ARCHTICK")
"_ARCHTICK"
Command: (getvar "DIMBLK")
"ArchTick"
Command: (tblsearch "BLOCK" "_ARCHTICK")
((0 . "BLOCK") (2 . "_ArchTick") (70 . 0) (10 0.0 0.0 0.0) (-2 . <Entity name: 7ffffb05330>))

So 2 interesting details :
- Acad creates the built-in arrow block on first need, (tblsearch) verifies this
- even when the sysvar is defines as "_ARCHTICK", Acad (getvar) returns "ArchTick", without preceding "_" underscore,
and also in programmed spelling ("CamelCase")
BricsCAD mimics this unlogical AutoCAD behavior.

My code in post #8 does not take this into account.

AIberto

  • Guest
Re: Help with this code?
« Reply #18 on: September 22, 2015, 06:59:19 AM »
For reference:
There is an issue with the built-in blocks for DIMBLK, DIMLDRBLK, DIMBLK1 and DIMBLK2 when using setvar/getvar.

From an answer to one of my BricsCAD Support Requests:
Quote
I verified in AutoCAD 2014 :
Command: (tblsearch "BLOCK" "_ARCHTICK")
nil
Command: (setvar "DIMBLK" "_ARCHTICK")
"_ARCHTICK"
Command: (getvar "DIMBLK")
"ArchTick"
Command: (tblsearch "BLOCK" "_ARCHTICK")
((0 . "BLOCK") (2 . "_ArchTick") (70 . 0) (10 0.0 0.0 0.0) (-2 . <Entity name: 7ffffb05330>))

So 2 interesting details :
- Acad creates the built-in arrow block on first need, (tblsearch) verifies this
- even when the sysvar is defines as "_ARCHTICK", Acad (getvar) returns "ArchTick", without preceding "_" underscore,
and also in programmed spelling ("CamelCase")
BricsCAD mimics this unlogical AutoCAD behavior.

My code in post #8 does not take this into account.

Thank you for you remember this question.