Rayan O Posted Thursday at 06:44 PM Posted Thursday at 06:44 PM I have multiple sections which I am trying to plot using a script file. I am stuck although the format seems to match what I can find online. This is what the shapes look like when I run the script file weirdly enough. the last 5 sections work just fine. I know the coordinates are correct in all cases since I made a scatter plot in Excel before hand. Also, when I just copy the lines from the script file into the command line. I get the right shape every time. (Possible Clue: the command stays in pline after pasting, look at the command line) Lines pasted into command line _.PLINE 103150,-122340 103150,-126391.3 101272.9,-126391.3 100691.9,-125765.9 100691.9,-122965.4 101272.9,-122340 103150,-122340 C _.PLINE 106150,-122340 106150,-126391.1 104264.2,-126391.1 103674.6,-125755.4 103674.6,-122975.7 104264.2,-122340 106150,-122340 C sections.scr Quote
SLW210 Posted 13 hours ago Posted 13 hours ago I moved your thread to the The CUI, Hatches, Linetypes, Scripts & Macros Forum. Quote the command stays in pline after pasting, look at the command line Your script is missing the blank line at the bottom, so it needed that for enter at the end. Other than that, I ran it in AutoCAD 2000i on my home computer and they all look like your bottom image. 1 Quote
eldon Posted 12 hours ago Posted 12 hours ago Have you tried to turn off Object Snaps before you run the script? It looks to me as if your line is snapping to adjacent end of line points instead of plotting the listed coordinates. 1 Quote
Rayan O Posted 8 hours ago Author Posted 8 hours ago 4 hours ago, eldon said: Have you tried to turn off Object Snaps before you run the script? It looks to me as if your line is snapping to adjacent end of line points instead of plotting the listed coordinates. Yep! That's the fix. Quote
BIGAL Posted 1 hour ago Posted 1 hour ago Any reason why you would not use a lisp ? Very simple shape to make. Just ask. The DCL front end took 1 minute to make. Could add more shapes. Quote
Rayan O Posted 1 hour ago Author Posted 1 hour ago 3 minutes ago, BIGAL said: Any reason why you would not use a lisp ? Very simple shape to make. Just ask. The DCL front end took 1 minute to make. Could add more shapes. I just am not that familiar with LISP commands, never used them. This is my first time where I needed many sections. Plus the geometry was defined on excel based on the contract plans. Chamfer thicknesses vary linearly. Quote
BIGAL Posted 1 hour ago Posted 1 hour ago If you have a Excel spreadsheet with the info like the DCL above, you do not need the XY points calculated as they will be calculated by the lisp. Can you post the Excel or at least an image. PS can read Excel from CAD. Quote
Rayan O Posted 1 hour ago Author Posted 1 hour ago See the two sheets attached. First one is the dimensions, second is the one where the PLINE command is written. PLINE Example.xlsm Quote
Recommended Posts
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.