Autocad Xref Drawing Ltscale Not Working
-
2015-01-30,03:46 PM #1
Member
Problem with the LTSCALE of XREF matching the HOST drawing
Hi everyone,
I'm new here & this will be my first post .
I work for an engineering office, and we use architectural plans as Xrefs to put our stuff on top of them, Problem is that every architect uses different LTSCALE and When we attach their plans as Xref in our drawings, It will not match our general LTS. and as a result we see the dashes as continues. which is a pain...
(In our templates the LTS is set to "20", PSLTSCALE is set to "1" VISRETAIN is set to "1" )
Any change to the LTSCALE value of Xref is ignored in the host drawing ( cuz of VISRETAIN setting i guess) Can anybody help me with this please? With a command or a lisp?
I greatly appreciate your help!
-
2015-02-01,08:30 PM #2
Re: Problem with the LTSCALE of XREF matching the HOST drawing
By default LTSCALE =1, PSLTSCALE =1, & MSLTSCALE =1. Before PSLTSCALE was introduced with the 2008 version changing LTSCALE was needed for different scaled viewports, not needed any more.
You decide to use something different than LTSCALE =1 now outside drawings will not match yours.
-
2015-02-02,01:18 PM #3
Member
-
2015-02-02,07:27 PM #4
Re: Problem with the LTSCALE of XREF matching the HOST drawing
Originally Posted by AJ_Error 404
Just open a drawing you receive from architect, and run this routine, which will set LTSCALE == 20.0, MSLTSCALE == 20.0 (this may need to be 1.0, *not sure*), PSLTSCALE == 1, account for any Objects that have an independent non-1.0 linetype scale setting, and supports UNDO functionality:
Code:
(vl-load-com) (defun c:SetLinetypeScales (/ *error* acDoc oLayers oLayer layers) (defun *error* (msg) (foreach oLayer layers (vla-put-lock oLayer :vlax-true) ) (vla-endundomark acDoc) (cond ((not msg)) ; Normal exit ((member msg '("Function cancelled" "quit / exit abort"))) ; <esc> or (quit) ((princ (strcat "\n** Error: " msg " ** "))) ; Fatal error, display it ) (princ) ) (vla-startundomark (setq acDoc (vla-get-activedocument (vlax-get-acad-object))) ) ;; set system variables for "linear" plug-in settings (foreach x (list '(ltscale 20.0) '(msltscale 20.0) '(psltscale 1.0) ) (vl-catch-all-apply 'setvar x) ) (setq oLayers (vla-get-layers acDoc)) (if (ssget "_x" '((-4 . "<NOT") (48 . 1.0) (-4 . "NOT>"))) (vlax-for x (vla-get-activeselectionset acDoc) (if (= :vlax-true (vla-get-lock (setq oLayer (vla-item oLayers (vla-get-layer x))) ) ) (progn (vla-put-lock oLayer :vlax-false) (setq layers (cons oLayer layers)) ) ) (vla-put-linetypescale x 1.0) ) ) (*error* nil) )
Cheers
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3630, Core i9-9900K 5.0GHz, 128GB RAM, Samsung 970 Pro M.2, 8GB NVIDIA Quadro P4000
-
2015-02-03,02:15 PM #5
Member
Re: Problem with the LTSCALE of XREF matching the HOST drawing
Thanks BlackBox for your lisp and the time that you put into this. As useful as this lisp is, it wouldn't solve all my problems. with this i attach 2DWG-files: AR00 & TECH00 the AR 00 has a lts set by architect to value "1" and
i want to xref it in TECH (the draft host drawing that i will later draw my pipelines in it) the lts in this drawing is with value "20" as you would see, This lts is needed to have a clear view of the type of the pipeline (in ground or ceiling mounted). so what im trying to say is: i need the xref to look like its own original form with the same length of dashes when i inserting it in my drawing TECH. I hope i have explained it well. tnx again!
-
2015-02-03,04:51 PM #6
Re: Problem with the LTSCALE of XREF matching the HOST drawing
Do you plot from Paper Space using viewports? I opened both drawings and see the problem. The easy fix would be to plot the architect's drawing to PDF, then insert it rather than the drawing. Both drawings will display just how you want.
-
2015-02-03,05:32 PM #7
Re: Problem with the LTSCALE of XREF matching the HOST drawing
Originally Posted by Tom Beauford
Another option, is to set both drawings LTSCALE == 1, MSLTSCALE == 1, PSLTSCALE == 1, and in *TECH* drawing, set CELTSCALE == 20 which will allow the architect XREF to show correctly, and all lines drawn to be displayed as desired. The only gotcha could be the OP's 3rd party app, which I'm not familiar with.
Cheers
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3630, Core i9-9900K 5.0GHz, 128GB RAM, Samsung 970 Pro M.2, 8GB NVIDIA Quadro P4000
-
2015-02-13,02:14 PM #8
Member
Re: Problem with the LTSCALE of XREF matching the HOST drawing
Originally Posted by Tom Beauford
Originally Posted by BlackBox
-
2015-02-13,04:55 PM #9
Re: Problem with the LTSCALE of XREF matching the HOST drawing
Originally Posted by AJ_Error 404
Originally Posted by AJ_Error 404
-
2015-03-02,08:36 AM #10
Member
Re: Problem with the LTSCALE of XREF matching the HOST drawing
Hi Tom,
You asked me why we use this software... i have to say that the company that i'm working for had started with this software. It does the calculations for hydraulic and Aerolic components. The senior designers are so used to using that software that i get the feeling sometimes that they don't want to let it go. you know... you can't teach an old dog new tricks... It has huge competitors like Revit. We have already started doing some projects with Revit. and i think it is the only option for future. no running away from it... but for now, i'm stuck with this...
orbisonforebole88.blogspot.com
Source: https://forums.augi.com/showthread.php?160442-Problem-with-the-LTSCALE-of-XREF-matching-the-HOST-drawing
0 Response to "Autocad Xref Drawing Ltscale Not Working"
Post a Comment