I'm going to learn ecmascript to make a plugin to handle some things that is neaded for geodetics.
have some questions:
Does qcad snapp Z(hight) or can it be made to do it?
Can a plugin retrieve Z to calculate slope?
Can I remake the parallel line function to do a Z-move?
Is it possible to edit points in an excelformat style?
Well... if the answer is yes I'll do it now!:-)
Some questions about plugins.
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Re: Some questions about plugins.
I've committed the necessary changes to snap to Z levels for end points and middle points. Other reference points such as intersections are not covered by these changes.AndreasO wrote:Does qcad snapp Z(hight) or can it be made to do it?
Yes, Z coordinates for example for lines are stored in the line's start and end point. You can display / edit Z coordinates using the property editor:AndreasO wrote:Can a plugin retrieve Z to calculate slope?
Edit > Application Preferences > Widgets > Property Editor > Display Z coordinates.
I'd recommend to implement a new tool for something like that, e.g. "Z Offset". You could project your 3D line onto a vertical plane, then use ShapeAlgorithms.getOffsetLines(...) and project the result back.AndreasO wrote:Can I remake the parallel line function to do a Z-move?
No. The closest to that is the property editor. There's also a simple example script which imports points from a text file in x,y format. This could be easily adjusted to (optionally) support Z coordinates:AndreasO wrote:Is it possible to edit points in an excelformat style?
scripts/Misc/MiscIO/ImportPoints/ImportPoints.js
- Arie Kabaalstra
- Newbie Member
- Posts: 5
- Joined: Sat Dec 24, 2011 11:51 am
Re: Some questions about plugins.
That was just what i needed.. i often have to deal with "projected" DXF's with 3D geometry, that has to be "Flattened" in order to create "Boundaries" for CAM purposes.. sometimes i have to "reverse engineer" NC Files, by projecting the Toolpaths to Geometry, giving me 3D toolpaths, which have problems when trying to offset them to get the actual original geometry in 2D.. also with Projection of 3D STL models, this also happens.. since projecting an STL gives you a 3D wire model..Yes, Z coordinates for example for lines are stored in the line's start and end point. You can display / edit Z coordinates using the property editor:
Edit > Application Preferences > Widgets > Property Editor > Display Z coordinates.
Selecting all and entering "0" for all the Z-coordinates solves the problem, and "flattens" the drawing.. Thanks!
Re: Some questions about plugins.
I'm intrigued with the purpose!?
As I cast an offset to lines, arcs or polys Qcad does a good job in keeping the Z correct.
Although it might leave gaps.
Your last post sounds more like
Misc/Modify/Flatten2D
As I cast an offset to lines, arcs or polys Qcad does a good job in keeping the Z correct.
Although it might leave gaps.
Your last post sounds more like
Misc/Modify/Flatten2D
- Arie Kabaalstra
- Newbie Member
- Posts: 5
- Joined: Sat Dec 24, 2011 11:51 am
Re: Some questions about plugins.
Damn!.. i hadn't yet found that one..
That does the trick also
Sometimes i'm provided with only an STL model, ori have to make a certain projection.. my Cam Software can project all edges on a model.. i then need to "flatten" it for drawing boundaries to contain my milling operations..
I make titanium watches.. and these cases can be quite intricate parts..
That does the trick also
well I ran into problems with 3D DXF's projecting some lines and arcs to one Z level.. i ended up with "Weird geometry"I'm intrigued with the purpose!?
Sometimes i'm provided with only an STL model, ori have to make a certain projection.. my Cam Software can project all edges on a model.. i then need to "flatten" it for drawing boundaries to contain my milling operations..
I make titanium watches.. and these cases can be quite intricate parts..
Re: Some questions about plugins.
Sub mm details, I know all of that.
Still I can not figure out your workflow
STL > DXF by CAM Gcode >2D
STL are all triangles, downside lots of similar edges.
offsets (Dmill/2)
Still I can not figure out your workflow
STL > DXF by CAM Gcode >2D
STL are all triangles, downside lots of similar edges.
offsets (Dmill/2)