CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.094.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedScript trouble - quick help please!

 Post Reply Post Reply
Author
Anders79 View Drop Down
Groupie
Groupie


Joined: 27.Dec.2011
Location: Sweden
Using: AutoCAD 2012 lt
Status: Offline
Points: 24
Direct Link To This Post Topic: Script trouble - quick help please!
    Posted: 16.Oct.2015 at 11:03
Hello.
 
I have a huuuge file containing coordinate pairs, looking like this:
 
1: XYZ XYZ
2: XYZ XYZ
3: XYZ XYZ
 and so on.
 
I want to dra a polyline in the middle of the coordinates in pont one, to the middle of the coordinates in point 2, to the middle of the coordinates in point 3, and so on, but my script fails every time.
It looks like this:
 
pline
m2p 6193787.8410,109433.9310,1.3720 6193788.8800,109434.3230,1.3820
m2p 6193781.0240,109450.3600,1.2950 6193782.0470,109450.7510,1.2800
m2p 6193773.9710,109466.9570,1.3030 6193774.9960,109467.3160,1.2660
 
and so on for 1783 points...
 
What is wrong? Boss is waiting... Dead
 


Edited by Anders79 - 16.Oct.2015 at 11:23
Command: oops
Back to Top
Anders79 View Drop Down
Groupie
Groupie


Joined: 27.Dec.2011
Location: Sweden
Using: AutoCAD 2012 lt
Status: Offline
Points: 24
Direct Link To This Post Posted: 16.Oct.2015 at 13:10
Ok, I solved it myself: Clap
 
 
Since there is z-coordinates it's concidereed a 3d-line, and pline cant be useed.
I changed  to 3Dpoly, and it worked fine.
Command: oops
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,176 seconds.