Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Layout Insert Scaling Issues

9 REPLIES 9
SOLVED
Reply
Message 4 of 10
anieves228
1016 Views, 9 Replies

Layout Insert Scaling Issues

Hello all!

 

When I initially open AutoCAD and insert a layout, the scale is much larger. Then I open a new file and I insert the same layout again: it inserts just fine. I use a lisp I wrote to do this. I have turned off all the other commands and left just the insert new layout from the template. Both the insert file and the new file have the same units and insert units. I'm not sure what's going on. Below are the lisp and the image. Note the first image (Drawing 1) is the incorrect scale and the second image (Drawing 2) is the correct scale. They are both in the same instance of AutoCAD.

 

 

;-------------------------------------------------------------------------------------------
;INSERT NEW 17 X 11 LAYOUT WITH BORDER

	(DEFUN C:L17 ()
;		(C:IU)
;		(c:scalelist)
;		(C:annoscale)
		(C:TERRA)		;CREATES TERRA TEXT STYLES
		(C:TDIM)		;CREATES DIMENSION TERRA STYLES
		(C:DWGLAYERS)	;CREATES DRAWING LAYOUT LAYERS
		(SETVAR "CMDECHO" 0)
			(SETVAR "CLAYER" "DWG-BORDER")
				(COMMAND
					"-LAYOUT"
					"T"
					"X:/Automation/Lisp Routines/Border Templates/Border templates.DWG"
					"11X17"
				)
			(SETVAR "CTAB" "11X17")
			(command "regenall")
			(c:ze)		;ZOOM EXTENTS
;			(C:IUSF)	;CHANGES INSERT UNITES TO US SURVEY FEET
;			(C:BDBLOCK)	;INSERTS STANDARD BLOCKS TO LAYOUT SPACE
		(SETVAR "CMDECHO" 1)
		(PROMPT "\n INSERTED 11X17 LAYOUT WITH BORDER \n")
		(PRINC)
	)

;END****************************************************************************************

 

INSERT SCALE ISSUE 1.JPG

INSERT SCALE ISSUE 2.JPG

 

 

Labels (5)
9 REPLIES 9
Message 1 of 10
anieves228
in reply to: anieves228

 

INSERT SCALE ISSUE 1.JPGINSERT SCALE ISSUE 2.JPG

 

Message 2 of 10
ВeekeeCZ
in reply to: anieves228

Seems to me like the site has a bad day again. It removed all your description and left just screenshots untouched.

Try again!

 

Anyway, don't think that the GENERAL AUTOCAD FORUM  would be more suitable for your issue?

 
Message 3 of 10
anieves228
in reply to: ВeekeeCZ

Fun website problems! will do. I used a lisp to insert the layout, but I think I have (hopefully) determined my lisp isn't the issue. I'll still post in the general forum.

 

Thank you!

Message 5 of 10
pendean
in reply to: anieves228

Share your block and destination DWG files with us as well.
Message 6 of 10
cadffm
in reply to: anieves228

Hi,

 

we can not check the size and the setting inside a picture..

(the white "paper" in the background says NOTHING, sorry )

 

But if the problem appears only in one file and not in another,

i guess your target file has a AEC DWG Setup with another unit setting and scaling option on.

Both DWG would answer all questions in seconds 😉

 

If you using just AutoCAD and not a toolset:

Open your target file, use -ExportToAutoCAD command to delete possible AEC DWG Settings,

open this new file and try it again.

 

But so many questions are unanswered without the files..

Sebastian

EESignature

Message 7 of 10
anieves228
in reply to: pendean

Here are my files. 

 

 

Message 8 of 10
ВeekeeCZ
in reply to: anieves228

Tried -DWGUNITS on both files and units don't match.

 
Message 9 of 10
pendean
in reply to: anieves228

As noted by others, your files are set up with different scale units (dwg1 is inches, dwg2 and template files are in feet).

Does your LISP need to be updated to consider this kind of variation, or is this a 1-off mistake or unique setup you got there? or something else?

 

Explain.

Message 10 of 10
anieves228
in reply to: pendean

I must have changed it by accident. and yes I need to change my lisp to add this variation. from I had typed "units" instead of "dwgunits" so I was just confused. 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


AutoCAD Beta