FB CAD

User projects written in or related to FreeBASIC.
Post Reply
owen
Posts: 555
Joined: Apr 19, 2006 10:55
Location: Kissimmee, FL
Contact:

erot and other variables

Post by owen »

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.
owen
Posts: 555
Joined: Apr 19, 2006 10:55
Location: Kissimmee, FL
Contact:

version eleven

Post by owen »

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)
Last edited by owen on Aug 01, 2013 19:18, edited 1 time in total.
owen
Posts: 555
Joined: Apr 19, 2006 10:55
Location: Kissimmee, FL
Contact:

fbcad11 is too slow

Post by owen »

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.
owen
Posts: 555
Joined: Apr 19, 2006 10:55
Location: Kissimmee, FL
Contact:

added a bunch of new stuff

Post by owen »

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
Last edited by owen on Aug 01, 2013 19:19, edited 1 time in total.
owen
Posts: 555
Joined: Apr 19, 2006 10:55
Location: Kissimmee, FL
Contact:

autocad dxf release 13 format study

Post by owen »

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.
Last edited by owen on Aug 01, 2013 19:20, edited 1 time in total.
owen
Posts: 555
Joined: Apr 19, 2006 10:55
Location: Kissimmee, FL
Contact:

ver 13 is online

Post by owen »

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
Last edited by owen on Aug 01, 2013 19:21, edited 1 time in total.
MystikShadows
Posts: 612
Joined: Jun 15, 2005 13:22
Location: Upstate NY
Contact:

Post by MystikShadows »

I just tried this and I like the changes you made from 12 to 13...I'm a fan of FB-CAD because it's a more serious role for FB programming :). and you're doing an awesome job demonstrating that side of FreeBASIC....Good going.

And I'm following this with great interest. :)
integer
Posts: 408
Joined: Feb 01, 2007 16:54
Location: usa

Post by integer »

Awesome.
Very good job.
I'm impressed.
I like this.
Thanks for sharing.
Lionheart2020
Posts: 13
Joined: May 30, 2009 18:12

Post by Lionheart2020 »

hi owen, all,

where I can download the last fbcad issue ? I have fixed for myself this morning fbcad 8 :) your current links at board aren't guilty anymore. project has changed to another place or forum? would be nice to get any nice feedback. - bye, leroy
Galeon
Posts: 563
Joined: Apr 08, 2009 5:30
Location: Philippines
Contact:

Post by Galeon »

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
owen
Posts: 555
Joined: Apr 19, 2006 10:55
Location: Kissimmee, FL
Contact:

splines

Post by owen »

coming soon in fbcad14
splines
Image
my splines are elliptical arcs (strictly)
joined at tangent points
in order to create a smooth transition
from one elliptical arc to the next.

Image
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.
owen
Posts: 555
Joined: Apr 19, 2006 10:55
Location: Kissimmee, FL
Contact:

fbcad 14

Post by owen »

version 14 is on the server
http://fbcadcam.org/files/fbcad14.zip
fillet button now includes the use of cmrxcross
Image
http://fbcadcam.org/files/hello-world.dxf
opens in fbcad as well as irfanview (need the cad add-in)
Image
Last edited by owen on Aug 01, 2013 19:25, edited 1 time in total.
owen
Posts: 555
Joined: Apr 19, 2006 10:55
Location: Kissimmee, FL
Contact:

version 15 addition 1

Post by owen »

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.
Last edited by owen on May 17, 2010 9:59, edited 1 time in total.
Sebastian
Posts: 131
Joined: Jun 18, 2005 14:01
Location: Europe / Germany
Contact:

Post by Sebastian »

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. :-)
owen
Posts: 555
Joined: Apr 19, 2006 10:55
Location: Kissimmee, FL
Contact:

free like the wind

Post by owen »

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
Post Reply