+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Senior Member
    Using
    AutoCAD 2006
    Join Date
    Aug 2009
    Posts
    109

    Default point orientation

    Registered forum members do not see this ad.

    Hi All,

    I have added a point using

    Code:
     
    ThisDrawing.ModelSpace.AddPoint(pnt)
    Then Rotated the point using

    Code:
     
    pnt.Rotate p, somevalue
    Now how can i read the current rotation value of the point?
    **The dxf code 50 representing the Rotation value.

    Thanks,
    Kumar.

  2. #2
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,932

    Default

    'ThisDrawing'... sounds like a VBA thang... then this thread may help:

    http://forums.autodesk.com/t5/AutoCA...BA/td-p/621912
    "Potential has a shelf life." - Margaret Atwood

  3. #3
    Senior Member
    Using
    AutoCAD 2008
    Join Date
    Nov 2005
    Location
    Bulgaria, Sofia
    Posts
    228

    Default

    It doesn't seems like the point object in VBA has no .Rotation property at all. It is just a point. To have a rotation you should better use a block containing a point or just any kind of block.

  4. #4
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,780

    Default

    Search for DUMPENT.lsp good for finding out all sorts of stuff about an object and naming for VL & VBA will confirm if rotation supported.
    A man who never made mistakes never made anything

  5. #5
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,932

    Default

    Code:
    (defun c:DUMP  ( / eName)
      (if (setq eName (car (entsel "\nSelect object: ")))
        (progn
          (vlax-dump-object (vlax-ename->vla-object eName) T)
          (textpage))
        (prompt "\n** Nothing selected ** "))
      (princ))
    "Potential has a shelf life." - Margaret Atwood

  6. #6
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,780

    Default

    Thanks Renderman didn't have that lisp at time of post. Dumpfor a Autocad point does not appear to have rotation. NOTE CIV3D point is totally different

    Code:
    Select object: ; IAcadPoint: AutoCAD Point Interface
    ; Property values:
    ;   Application (RO) = #<VLA-OBJECT IAcadApplication 000000013fdc2308>
    ;   Coordinates = (613.794 53.8048 0.0)
    ;   Document (RO) = #<VLA-OBJECT IAcadDocument 0000000026ac7068>
    ;   EntityTransparency = "ByLayer"
    ;   Handle (RO) = "116C2"
    ;   HasExtensionDictionary (RO) = 0
    ;   Hyperlinks (RO) = #<VLA-OBJECT IAcadHyperlinks 000000003768f208>
    ;   Layer = "DEFAULT"
    ;   Linetype = "ByLayer"
    ;   LinetypeScale = 1.0
    ;   Lineweight = -1
    ;   Material = "ByLayer"
    ;   Normal = (0.0 0.0 1.0)
    ;   ObjectID (RO) = 87
    ;   ObjectID32 (RO) = 87
    ;   ObjectName (RO) = "AcDbPoint"
    ;   OwnerID (RO) = 88
    ;   OwnerID32 (RO) = 88
    ;   PlotStyleName = "ByLayer"
    ;   Thickness = 0.0
    ;   TrueColor = #<VLA-OBJECT IAcadAcCmColor 00000
    Select object:
    00037684520>
    ;   Visible = -1
    A man who never made mistakes never made anything

  7. #7
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,932

    Default

    You're welcome; I have a slew of Dump* and Entget* functions for various objects. I'd be happy to share if you'd find them useful.

    ** Edit - I do need to add Civil 3D specific support though; many of the Aecc* objects are not even supported by vlax-dump-object. I'm going to need to code some .NET LispFunction Methods to expand LISP for this.
    "Potential has a shelf life." - Margaret Atwood

  8. #8
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,780

    Default

    Renderman your mailbox is full can not send you some help for AECC CIV3d
    A man who never made mistakes never made anything

  9. #9
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,932

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by BIGAL View Post
    Renderman your mailbox is full can not send you some help for AECC CIV3d
    Thanks Bigal; inbox cleaned up (enough), fire away! LoL

    Cheers
    "Potential has a shelf life." - Margaret Atwood

Similar Threads

  1. Linetype Orientation
    By JORYROJ in forum AutoLISP, Visual LISP & DCL
    Replies: 20
    Last Post: 10th May 2012, 08:19 pm
  2. Replies: 1
    Last Post: 29th Aug 2011, 10:00 pm
  3. Replies: 0
    Last Post: 29th Aug 2011, 09:52 pm
  4. Drawing orientation
    By MisterJingles in forum AutoCAD Drawing Management & Output
    Replies: 11
    Last Post: 21st Jan 2010, 10:19 am
  5. Orientation
    By Peter K in forum SolidWorks
    Replies: 1
    Last Post: 29th Apr 2009, 01:59 pm

Bookmarks

Posting Permissions

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