Jump to content

Draw a line with coordinates?


Recommended Posts

Posted

hello there,

As always i have one more doubt that i would like to see clarified by you as experts in Autocad matters :D

I have a large number of points with the coordinates X and Y, now i need to draw a line passing through those points automatically, is it there any way of doing that without drawing a line between each point?

 

thnak you ver much for your help ;)

Posted
hello there,

 

As always i have one more doubt that i would like to see clarified by you as experts in Autocad matters :D

 

I have a large number of points with the coordinates X and Y, now i need to draw a line passing through those points automatically, is it there any way of doing that without drawing a line between each point?

 

thnak you ver much for your help ;)

 

If I understand you right, you want to find the mid point of the mid point of two lines. I would use m2p or mtp they are the samething.

Posted

If the point coordinates are in a text or excel file (if they are in the .dwg as points they can be extracted) there are ways to do want you want by various means (e.g. script files). But the points must be in the order that you want the lines drawn.

Posted

thank you guys, but i already know how to do it, but what i needed was to draw a line through some points which i had previously the coordinates, thats pretty easy... you just need the command line and then put there all the coordinates at once and the line its done, pretty easy, it couldnt be easier than that ;)

Posted
thank you guys, but i already know how to do it, but what i needed was to draw a line through some points which i had previously the coordinates, thats pretty easy... you just need the command line and then put there all the coordinates at once and the line its done, pretty easy, it couldnt be easier than that ;)

If you already knew how, why'd you ask?

Posted
If you already knew how, why'd you ask?

 

Probably wondering if there was a quicker way maybe?

Posted
If you already knew how, why'd you ask?

 

 

he was just making sure we knew how....keeping us on our toes

 

what a gentleman and a scholar!

Posted

well, the truth is that after asking here i kept trying to see how i could possibly do that, and guess what, i figured out ;)

Posted

:lol: I think this was a case of us all thinking of harder solutions when the simplest one was what was sought.

 

Glad you figured it out Myself :)

Posted
Glad you figured it out Myself :)
That was your thoughts exactly.

 

Boro Nut

Posted

Hi,:shock:

 

:unsure: am searching for VBA code which can retrive XYZ coordinates of 3D objects.

 

-------------------------------------------------------------

For Each entity In acadApp.ActiveDocument.ModelSpace

MsgBox "entity.ObjectName = " & entity.ObjectName

If entity.ObjectName = "AcDbRegion" Then

MsgBox "found"

Set my3Dobj = entity

 

'my3Dobj.(Dont know which method will retrive XYZ 'coordinates of such a object. CAD,VBA Gurus, Please help me.:? 'Waiting for reply.

 

my3Dobj = Nothing

End If

Next

------------------------------------------------------------

Posted

Hi Amit and welcome - please start a new thread for your question, more likely to get good answers then.

Posted

Oh no!!!!

 

some silly quetion of mine .How should I start a new thread ?

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