• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Contributor
    Posts: 12
    Registered: ‎09-16-2005

    Re: Create layer programmatically

    05-12-2006 12:07 AM in reply to: fmarcelino
    Thanks 'parcea'
    I have a lisp version already but here is something you could add to yours to place a description in your layer definition.
    ;;;*Syntax (ldescription name desc)
    (DEFUN ldescription(LAYERNAME LAYERDESC)
    (setq myLayer (vla-Add (vla-Get-Layers (vla-Get-ActiveDocument
    (vlax-Get-Acad-Object))) LAYERNAME))
    (vla-Put-Description myLayer LAYERDESC)
    )
    Regards
    Dave
    Please use plain text.
    Contributor
    Posts: 19
    Registered: ‎08-14-2006

    Re: Create layer programmatically

    12-12-2006 03:05 PM in reply to: fmarcelino
    Filipe can you tell me what refernce need to be checked to use the autodesk.autocad.databseservices ? thanks
    Please use plain text.