Jump to content

Recommended Posts

Posted

i recently try to manage cameras in autocad 2006 so that is not supportet in vba code so i used a trick by sending commands to autocad it works but display image is not real so i moved in autocad 2009 i see that in autocad 2009 have camera object but i didnt find any command to invok it from vba so did they put camera in vba for autocad 2009 or i will still have to trouble myself with parsing commands to autocad becouse there is a bit of problem

 

i draw line in layer who named is camera

then i send commands

 
For i = 0 To j
ThisDrawing.ActiveSpace = acModelSpace
Set DynArray(i).StartPoint(2) = camera_height

ThisDrawing.SendCommand "camera" & vbCr

ThisDrawing.SendCommand DynArray(i).StartPoint(0) & "," & DynArray(i).StartPoint(1) & "," & DynArray(i).StartPoint(2) & vbCr
ThisDrawing.SendCommand DynArray(i).EndPoint(0) & "," & DynArray(i).EndPoint(1) & "," & DynArray(i).EndPoint(2) & vbCr

 

i have one simple question

have in vba for autocad 2009 camera object

how to use it

 

tnx

 

sorry for bad grammar

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...