Autocad Xref Drawing Ltscale Not Working

  1. #1

    AJ_Error 404 is offline

    Member


    Default 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!


  2. #2

    Default 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.


  3. #3

    AJ_Error 404 is offline

    Member



  4. #4

    Default Re: Problem with the LTSCALE of XREF matching the HOST drawing

    Quote Originally Posted by AJ_Error 404 View Post

    Hi Tom, Thanks for your reply. I am with you on this. we should 've kept the value "1" for Lts in our template. But the reason behind it is that we work with Linear.
    It uses Autocad as a platform and works as a plug-in. The general LTS-setting in this program is set to value "20" to ensure that we see the pipelines in dashes as they should.
    So to match that we have set our template LTS-value to "20"
    and that is where the problem starts with the architectural xrefs.

    I work with Annotation Scales like Tom, so without a drawing to see the 'before' and 'after', perhaps something like this will work for you?

    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


  5. #5

    AJ_Error 404 is offline

    Member


    Default 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!

  6. #6

    Default 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.

  7. #7

    Default Re: Problem with the LTSCALE of XREF matching the HOST drawing

    Quote Originally Posted by Tom Beauford View Post

    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.

    Being that the OP uses PSLTSCALE == 1, I'd speculate they do plot from Layout. *not sure*

    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


  8. #8

    AJ_Error 404 is offline

    Member


    Default Re: Problem with the LTSCALE of XREF matching the HOST drawing

    Quote Originally Posted by Tom Beauford View Post

    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.

    Working with PDF's (during drafting process) make my system work very slowly. I had used scanned plans inserted in my drawings before. the result was, continues crashing Autocad. So "PDF" for architecture is maybe a good answer for printing out the plans but for drafting, I would say that it brings it's own problems...

    Quote Originally Posted by BlackBox View Post

    Being that the OP uses PSLTSCALE == 1, I'd speculate they do plot from Layout. *not sure*

    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

    We do Plot the layouts and we also send them digitally (after binding or etransmit). I used the parameters that u suggested, but in my case unfortunately it didn't work... i Also send the question to the developers of Linear to see if they have a fix for their program... no answer yet

  9. #9

    Default Re: Problem with the LTSCALE of XREF matching the HOST drawing

    Quote Originally Posted by AJ_Error 404 View Post

    Working with PDF's (during drafting process) make my system work very slowly. I had used scanned plans inserted in my drawings before. the result was, continues crashing Autocad. So "PDF" for architecture is maybe a good answer for printing out the plans but for drafting, I would say that it brings it's own problems...

    I've had good luck since PDF underlays became an option. I use AutoCAD's plot-to-pdf option which works great in newer versions.

    Quote Originally Posted by AJ_Error 404 View Post

    We do Plot the layouts and we also send them digitally (after binding or etransmit). I used the parameters that u suggested, but in my case unfortunately it didn't work... i Also send the question to the developers of Linear to see if they have a fix for their program... no answer yet

    Still have no idea what you're using this software for. Have you tried these forums to see if you could get the same functionality here without all those headaches? How much did you pay for this software?

  10. #10

    AJ_Error 404 is offline

    Member


    Default 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

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel