Dim Function

Dim Function

Abby_Baratta
Enthusiast Enthusiast
620 Views
5 Replies
Message 1 of 6

Dim Function

Abby_Baratta
Enthusiast
Enthusiast

Hello,

 

I've been working with some LISP routines that were originally written for AutoCAD 2004 and I'm trying to get them to run smoothly in 2022. I'm running into an issue with one of my "dim" functions.

 

I am getting the error:

Abby_Baratta_0-1716563922668.png

 

From the block of code that says:

(command "dim" "dimtix" 1
	"dim" "horiz"
	(list (- 0 10.25) 6.375)
	(list 0 8.3125)
	(list (/ 5.186 2) 14.484) "" "exit"
	"dim" "dimtix" 0))

 

I'm not very familiar with the "dim" command, so any insight would be appreciated!

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

marko_ribar
Advisor
Advisor

Not sure...

Have you tried with DIMALIGNED...

 

(setvar (quote dimtix) 1)
(command "_.dimaligned"
  (list (- 0 10.25) 6.375)
  (list 0 8.3125)
  (list (/ 5.186 2) 14.484)
)
(setvar (quote dimtix) 0)

M.R.

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes
Message 3 of 6

Abby_Baratta
Enthusiast
Enthusiast

That didn't throw an error and it added the piece that I wanted it to. The only part that's funky now is that it's angled instead of horizontal.

 

How it's supposed to look:

Abby_Baratta_0-1716570152100.png

 

How it does look:

Abby_Baratta_1-1716570179886.png

 

Thank you!!

0 Likes
Message 4 of 6

paullimapa
Mentor
Mentor
Accepted solution

Since Horiz is no longer an option under the Dim command you'll have to change the code to look like this:

(command "_.Dim" "_dimtix" 1 "_EXIT"
	"_.Dimhorizontal"
	(list (- 0 10.25) 6.375)
	(list 0 8.3125)
	(list (/ 5.186 2) 14.484)
	"_.Dim" "_dimtix" 0 "_EXIT")

 


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

Abby_Baratta
Enthusiast
Enthusiast

That ended up working perfectly - thank you!

0 Likes
Message 6 of 6

paullimapa
Mentor
Mentor

glad to have helped...cheers!!!


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