Results 1 to 3 of 3

Thread: Accessing object properties with an objectOD

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member
    Join Date
    2017-04
    Posts
    10
    Login to Give a bone
    0

    Default Accessing object properties with an objectID

    Beginner Question:
    I have a selectionset of objectIds, i guess its called an objectidcollection. How can i get the layer of each of these? I thought something like myObjectID.layer would work but it doesnt. I also tried creating an Object using:
    Object myNewObj = objID.(GetObject (OpenMode.ForRead) as Object

    and then using:
    myNewObj.layer

    but that doesnt work either. Im sure this is very simple but i cant figure it out or find example code like this anywhere.

    Thanks for any help.

    James
    Last edited by jrauden748232; 2017-05-23 at 06:48 PM. Reason: Mistake

Similar Threads

  1. Accessing object inside block reference
    By a.ghensi689507 in forum VBA/COM Interop
    Replies: 0
    Last Post: 2015-03-23, 10:53 AM
  2. Copy Object Properties Before Creating a Similar Object
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 8
    Last Post: 2012-07-01, 03:03 AM
  3. New object properties not matching layer properties
    By domniki in forum AutoCAD General
    Replies: 5
    Last Post: 2010-03-23, 09:48 AM
  4. Accessing embedded object data
    By anderson.scottglen in forum AutoLISP
    Replies: 3
    Last Post: 2009-04-09, 06:57 PM
  5. Object properties palette not showing selected Objects properties
    By timothyjturner in forum AutoCAD General
    Replies: 22
    Last Post: 2007-08-10, 05:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •