Print Page | Close Window

Script trouble - quick help please!

Printed From: CAD Forum
Category: EN
Forum Name: CAD - general
Forum Description: General discussion about CAD, formats, standards, management, licensing, networking, harware, other CAD applications
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=11418
Printed Date: 17.Aug.2026 at 18:54


Topic: Script trouble - quick help please!
Posted By: Anders79
Subject: Script trouble - quick help please!
Date 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
 


-------------
Command: oops



Replies:
Posted By: Anders79
Date 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



Print Page | Close Window