Jump to content

Recommended Posts

Posted

Hi All,

 

I have added a point using

 


ThisDrawing.ModelSpace.AddPoint(pnt)

 

Then Rotated the point using

 


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.

Posted

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.

Posted

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.

Posted
(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))

Posted

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

 

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

Posted

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.

Posted

Renderman your mailbox is full can not send you some help for AECC CIV3d

Posted
Renderman your mailbox is full can not send you some help for AECC CIV3d

 

Thanks Bigal; inbox cleaned up (enough), fire away! LoL

 

Cheers :beer:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...