2005 sheet setup...

Discussion in 'AutoCAD' started by Rudy Tovar, Nov 3, 2004.

  1. Rudy Tovar

    Rudy Tovar Guest

    Just about to start on accessing the 2005 sheet setup properties via what
    ever...

    Anyone had any shots at it?

    For a start, I'd like to be able to 'saveas' reactor to add the sheet
    automatically to the sheet setup manager...

    I'll be playing around with this and post anything that becomes available,
    that is unless this can already be done automatically or somkeone has
    something they'd like to share..

    We will Also be setting up a project setup utility that must create the
    sheet setup on the fly... from a random possiblity of sheets, type and
    compositions.

    Your feedback is welcome and commments are welcome...

    Thank you..

    Oh, and here's a piece of code that we've been working on for layer
    convertion... the first part renames, and the second part check for
    duplicates and reassigns the objects to that layer.

    ;USE (MASi-new-layer <old layer name> <new layer name>)

    (defun MASi-new-layer (old new / ms o n)

    (setq o (tblobjname "layer" old))

    (if o
    (progn
    (if (= (tblobjname "layer" new) nil)
    (progn
    (setq n (vlax-ename->vla-object o))
    (vla-put-name n new)
    )
    (progn
    (setq ms (vla-get-modelspace
    (vla-get-activedocument (vlax-get-acad-object))
    )
    )
    (MASi-layer-mod ms old new)
    ; Do anything else here... ;
    )
    )
    )

    )

    (princ)
    )

    ;Use (MASi-color-mod <doc> <old layer> <new layer>)

    (defun MASi-layer-Mod ( ms 1st 2nd /)

    (vlax-for for-item ms
    (progn
    (setq layer (vla-get-layer for-item))
    (if (= (strcase layer) (strcase 1st))
    (vla-put-layer for-item 2nd)
    )
    )
    )
    (princ)
    )
    --
    MASi
    Copyright 2004 by Cadentity
    www.Cadentity.com
    Autodesk
    Authorized Developer
     
    Rudy Tovar, Nov 3, 2004
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.