FB CAD
erot and other variables
i added '$lang: "deprecated" to the top
erot, cr1 & cr2 were double dim in the detectpoints sub. i don't think there was any reason for double dimming them. i think it was just an error.
i dimmed them at the top of the routine (one time) and commented them out in two different places below. briefly tested and seemed to work the same.
this change will be seen in version 11 which i'm still working on at the moment.
in version 11 i'm adding block feature (a way to assign lines and circles to a group) so that i can insert text into the drawing. each of my characters has several lines and arcs so in order to keep them together as one object the block feature is a practical approach.
erot, cr1 & cr2 were double dim in the detectpoints sub. i don't think there was any reason for double dimming them. i think it was just an error.
i dimmed them at the top of the routine (one time) and commented them out in two different places below. briefly tested and seemed to work the same.
this change will be seen in version 11 which i'm still working on at the moment.
in version 11 i'm adding block feature (a way to assign lines and circles to a group) so that i can insert text into the drawing. each of my characters has several lines and arcs so in order to keep them together as one object the block feature is a practical approach.
version eleven
zip files from now on since i have extra files to include with the code
http://fbcadcam.org/files/fbcad11.zip
in version 11 i added
1. characters 0 to 9 and a to z and a period.
2. insert text (using the above characters)
3. for the moment dimensions X uses the 10 digits and period
4. scale - scale selected objects up or down in size
5. text font size change / set the size of text (for text and dimensions)
http://fbcadcam.org/files/fbcad11.zip
in version 11 i added
1. characters 0 to 9 and a to z and a period.
2. insert text (using the above characters)
3. for the moment dimensions X uses the 10 digits and period
4. scale - scale selected objects up or down in size
5. text font size change / set the size of text (for text and dimensions)
Last edited by owen on Aug 01, 2013 19:18, edited 1 time in total.
fbcad11 is too slow
fbcad runs too slow when too many lines and circles are in the drawing. this is the case in fbcad 11 on start up cuz i put serveral lines of text in the opening screen. with all these lines and circles (in the text) it really slows things down to where it's cumbersome at best to even use the darn thing. fbcad 12 will have the solution.
added a bunch of new stuff
fbcad 12 is on the server ready for download
http://fbcadcam.org/files/fbcad12.zip
new stuff includes:
Snap to Tangent of circles, arcs, ellipses and elliptical arcs
Dimensions - Dimension X and Y axis, Distance, Radius, Diameter, Angles
Text - Insert Text (one crude font for the moment)
Scale - Scale objects up or down in size
Block - create and insert blocks
Grid - Turn grid on and snap to grid points
Need volunteers to help create Help File
thxs owen
http://fbcadcam.org/files/fbcad12.zip
new stuff includes:
Snap to Tangent of circles, arcs, ellipses and elliptical arcs
Dimensions - Dimension X and Y axis, Distance, Radius, Diameter, Angles
Text - Insert Text (one crude font for the moment)
Scale - Scale objects up or down in size
Block - create and insert blocks
Grid - Turn grid on and snap to grid points
Need volunteers to help create Help File
thxs owen
Last edited by owen on Aug 01, 2013 19:19, edited 1 time in total.
autocad dxf release 13 format study
http://fbcadcam.org/files/dxf-study-for-AC1012.xls
the above link is a spreadsheet containing the data from several dxf files. in this spreadsheet i have hi-lighted the important data to study. the data of concern is about the dxf handseed variable... it's a matter of memory allocation / assignment to entities and their supporting sub entities / attributes when writing or creating dxf files.
the above link is a spreadsheet containing the data from several dxf files. in this spreadsheet i have hi-lighted the important data to study. the data of concern is about the dxf handseed variable... it's a matter of memory allocation / assignment to entities and their supporting sub entities / attributes when writing or creating dxf files.
Last edited by owen on Aug 01, 2013 19:20, edited 1 time in total.
ver 13 is online
http://fbcadcam.org/files/fbcad13.zip
in version 13 i added a bunch of stuff like snap to gravity function, etc...
currently i'm working on 3d but it's going to be a long time till i post version 14
in version 13 i added a bunch of stuff like snap to gravity function, etc...
currently i'm working on 3d but it's going to be a long time till i post version 14
Last edited by owen on Aug 01, 2013 19:21, edited 1 time in total.
-
- Posts: 612
- Joined: Jun 15, 2005 13:22
- Location: Upstate NY
- Contact:
-
- Posts: 13
- Joined: May 30, 2009 18:12
Its seems there are some bugs in it, especially Segmentation Faults, I can't use it in DOS.
If he can't give you a copy, I have one here:
http://freefile.kristopherw.us/uploads/ ... fbcad13.7z
If he can't give you a copy, I have one here:
http://freefile.kristopherw.us/uploads/ ... fbcad13.7z
splines
coming soon in fbcad14
splines
my splines are elliptical arcs (strictly)
joined at tangent points
in order to create a smooth transition
from one elliptical arc to the next.
in the picture above:
the green arrows point to cmrxcrosses
based on the yellow lines, their angles to each other and their end points; the white dots are a catmul_rom plot and the yellow curves are elliptical arcs.
the catmul_rom curve is used in order to calculate
a best estimation of what i call cmrxcross (catmul_rom x cross).
the implementation of this is best described as the "S" curve situation.
the point at which the curve changes direction (near the middle of the "S")
is the point of interest. the point and the angle of approach.
notice that the green arrow on the left is pointing to the cmrxcross near the middle of the "S" where as the cmrxcross on the right is a little bit above the middle of the "S".
in the "S" curve situation i end up creating two elliptical arcs,
the first arc starts at the top of the "S" and ends at the cmrxcross, tangent to the cmrxcross angle. the second curve starts at the bottom of the "S" and also ends at cmrxcross.
this work around proved to be most excellent.
my (elliptical arc) splines are pretty close to catmul_rom plots.
splines
my splines are elliptical arcs (strictly)
joined at tangent points
in order to create a smooth transition
from one elliptical arc to the next.
in the picture above:
the green arrows point to cmrxcrosses
based on the yellow lines, their angles to each other and their end points; the white dots are a catmul_rom plot and the yellow curves are elliptical arcs.
the catmul_rom curve is used in order to calculate
a best estimation of what i call cmrxcross (catmul_rom x cross).
the implementation of this is best described as the "S" curve situation.
the point at which the curve changes direction (near the middle of the "S")
is the point of interest. the point and the angle of approach.
notice that the green arrow on the left is pointing to the cmrxcross near the middle of the "S" where as the cmrxcross on the right is a little bit above the middle of the "S".
in the "S" curve situation i end up creating two elliptical arcs,
the first arc starts at the top of the "S" and ends at the cmrxcross, tangent to the cmrxcross angle. the second curve starts at the bottom of the "S" and also ends at cmrxcross.
this work around proved to be most excellent.
my (elliptical arc) splines are pretty close to catmul_rom plots.
Last edited by owen on Aug 01, 2013 19:24, edited 1 time in total.
fbcad 14
version 14 is on the server
http://fbcadcam.org/files/fbcad14.zip
fillet button now includes the use of cmrxcross
http://fbcadcam.org/files/hello-world.dxf
opens in fbcad as well as irfanview (need the cad add-in)
http://fbcadcam.org/files/fbcad14.zip
fillet button now includes the use of cmrxcross
http://fbcadcam.org/files/hello-world.dxf
opens in fbcad as well as irfanview (need the cad add-in)
Last edited by owen on Aug 01, 2013 19:25, edited 1 time in total.
version 15 addition 1
version 15 coming next week
in this version the LAYERS can be enabled and disabled.
the idea of using layers in a cad drawing is so that you can
separate your work.
for example: to draw a house you might use three layers,
1st layer could be the floor plan
2nd layer could be the plumbing
3rd layer could be the electrical
in version 15 i have already added and tested this cool feature.
actually i use 3 states for my layers.
state 0 is hidden
state 1 is visible
state 2 is visible and selectable
to change the state of each layer, i've added a small box to click on.
in this version the LAYERS can be enabled and disabled.
the idea of using layers in a cad drawing is so that you can
separate your work.
for example: to draw a house you might use three layers,
1st layer could be the floor plan
2nd layer could be the plumbing
3rd layer could be the electrical
in version 15 i have already added and tested this cool feature.
actually i use 3 states for my layers.
state 0 is hidden
state 1 is visible
state 2 is visible and selectable
to change the state of each layer, i've added a small box to click on.
Last edited by owen on May 17, 2010 9:59, edited 1 time in total.
Just out of curiosity: What license is used for this project? GPL, MIT, Public Domain, ... ?
If it's a free license, I'd like to put the package into the download area of freebasic-portal.de. :-)
If it's a free license, I'd like to put the package into the download area of freebasic-portal.de. :-)
free like the wind
free as in free
actually this was a very good question.
my intention is to make this program with pure fb,
in other words, as much as possible i wold like to not
use other libraries and even more so if those other libraries
have a license that is not free as in free.
so i must clarify what free as in free is to me:
i will always provide source code (good luck sifting thru it)
do what u want with it.
modify it and call it yours
or modify it and call it free as in free as i do.
either way it makes no difference to me.
my intention is to limit my time debating licenses now and in the
future but instead to simply have fun. after all, nothing really belongs
to anyone in the end.
have fun
actually this was a very good question.
my intention is to make this program with pure fb,
in other words, as much as possible i wold like to not
use other libraries and even more so if those other libraries
have a license that is not free as in free.
so i must clarify what free as in free is to me:
i will always provide source code (good luck sifting thru it)
do what u want with it.
modify it and call it yours
or modify it and call it free as in free as i do.
either way it makes no difference to me.
my intention is to limit my time debating licenses now and in the
future but instead to simply have fun. after all, nothing really belongs
to anyone in the end.
have fun