logo
NOTICE:  This is the new PunchCAD forum. You should have received an email with your new password around August 27, 2014. If you did not, or would like it reset, simply use the Lost Password feature, and enter Answer as the security answer.
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
gensmenger  
#1 Posted : Thursday, August 13, 2015 8:30:02 PM(UTC)
gensmenger

Rank: Junior Member

Joined: 10/9/2014(UTC)
Posts: 21

Thanks: 17 times
Attached is a model that is about 1/20 scale. The model is a wire I bent that is only 1-1/2" in diameter. My milling machine has a bore scope for the chuck and Digital Readouts for x,y, and z. So I took a series of readings, about 20 to test the first time. I then plotted the 20 points as POINTS. What is so cool about ViaCAD is that I can connect these POINTS with the Interpolated Spline tool, and it will connect to all the points. Then the PIPE tool can make it look like the steel rod that is needed.

As you can see this is a twisty bendy part. I need to make a couple dozen, and attempting that by hand bending them out of hard steel rod & to be identical would be not a job I want.

So I found a machine shop that asked for a STL file and they could use a CNC wire bender. SO COOL!!

My question is, in ViaCAD Pro 9, am I only limited in entering these POINTS, one by one, entering X, Y, and Z. OR, is there a way I could use and Excel spreadsheet and then export in some kind of format, that ViaCAD Pro 9 could read and enter all the POINTS. (that would be the perfect world).

I would then gather more like 50 points to make a much smoother drawing.

What do you all think? Can I somehow import all these coordinates?

gensmenger attached the following image(s):
IMG_0659.jpg (131kb) downloaded 7 time(s).

You cannot view/download attachments. Try to login or register.
murray  
#2 Posted : Thursday, August 13, 2015 8:55:41 PM(UTC)
murray

Rank: Senior Member

Joined: 9/24/2014(UTC)
Posts: 373
Australia

Thanks: 8 times
Was thanked: 104 time(s) in 85 post(s)
Use VC/Shark's .spl file format import. It's exactly what you're after.
thanks 1 user thanked murray for this useful post.
gensmenger on 8/14/2015(UTC)
jdi000  
#3 Posted : Friday, August 14, 2015 5:47:23 AM(UTC)
jdi000

Rank: Administration

Joined: 7/29/2007(UTC)
Posts: 1,862
United States

Thanks: 1 times
Was thanked: 87 time(s) in 81 post(s)


Here is the link to some documentation.

http://www.csi-concepts....rtingSplinesTutorial.pdf



Regards

Jason
Windows 11, 10
thanks 1 user thanked jdi000 for this useful post.
gensmenger on 8/14/2015(UTC)
gensmenger  
#4 Posted : Friday, August 14, 2015 7:13:50 AM(UTC)
gensmenger

Rank: Junior Member

Joined: 10/9/2014(UTC)
Posts: 21

Thanks: 17 times
That works! Thank you so much.
gensmenger  
#5 Posted : Friday, August 14, 2015 1:20:21 PM(UTC)
gensmenger

Rank: Junior Member

Joined: 10/9/2014(UTC)
Posts: 21

Thanks: 17 times
WHAT NO "Z"?

I spoke too soon when I said "IT WORKS!". It works partially (only 2/3rds). It only imports X & Y, no Z. BTY, I updated VacCad Pro 9 to build 1166 today.

I carefully read the PDF called "ImportingSplinesTutorial.pdf" from http://www.csi-concepts....tingSplinesTutorial.pdf.

*****I think there is a TYPO on page 2. The word POINT should be POINTS.*****

I'm using an iMac and using BBEDIT to create the text files. This robust text application allows me to see the invisible characters.

I think everything was prepared correctly:
* The text file end with .spl, so one example file is called "test.spl".
* Each coordinate is separated by a space.
* End of each line has a RETURN

So let's look at top of page 4.

Example
// Example spline that goes through provided points
THROUGHSPLINE
10 10 0
11 11 0
12 11 0
13 10 0

This was successful, an example of X & Z only coordinates. Z coordinates are all ZERO.

Let me rewrite this as if you can see the invisible characters, because maybe I'm missing something very simple, or there is a bug, that ViaCAD can not imported Z coordinates from .spl files.

THROUGHSPLINE
10(space)10(space)0(return)
11(space)11(space)0(return)
12(space)11(space)0(return)
13(space)10(space)0(return)


This example works, however there is no Z for height.

So let's add some Z coordinates:
THROUGHSPLINE
10(space)10(space)0(return)
11(space)11(space)5(return)
12(space)11(space)0(return)
13(space)10(space)-5(return)

I would think something as simple as this would work, IT DOES NOT. NO Z.

So what is the missing ingredient? I've tried THROUGHSPLINE, VECTORSPLINE, POINT and POLYLINE, I can't get any Z!

Is this a bug? Is there special ENCODING that I must save this .spl file. I have lots of ENCODING options in BBEDIT.



gensmenger  
#6 Posted : Friday, August 14, 2015 2:52:03 PM(UTC)
gensmenger

Rank: Junior Member

Joined: 10/9/2014(UTC)
Posts: 21

Thanks: 17 times
Still no Z when importing Splines .spl files.

I've been experimenting, learned a few things.
* Between the X & Y coordinates, it does not matter if there is a TAB or a SPACE.
* It does not matter if the file has a .spl or .txt
* DO NOT SAVE the file from EXCEL as UTF-16 Unicode Text (TXT). It will not work.
* Saving as just a normal TAB DELIMITED file from Excel works good.

But after hours of experimenting with trying to get a Z coordinate to import seems impossible.

However in the documentation there is clearly reference:
From the ImportingSplinesTutorial.pdf
Page 2 - XYZ data is separated by spaces and may be either integer or floating point numbers.
Page 3 - The keyword for this type is POINT followed by sets of xyz points.
Page 3 - The keyword for this type is THROUGHSPLINE followed by sets of xyz points.
Page 4 - The keyword for this type is VECTORSPLINE followed by sets of xyz points.
Page 5 - The keyword for this type is POLYLINE followed by sets of xyz points.
Page 6 - The third line is a line containing a 3D vector function for x,y, and z defined in the domain.
Page 7 - A 3D vector function for x,y, and z defined in the two domains.

Surely with this many references to X, Y, and Z that Z is very much included, right?

So is there a Preference I'm missing, or some format of the import file?

I took 141 X,Y, Z coordinate readings, so I'm typing them in by hand for now. Painful.
murray  
#7 Posted : Friday, August 14, 2015 7:22:36 PM(UTC)
murray

Rank: Senior Member

Joined: 9/24/2014(UTC)
Posts: 373
Australia

Thanks: 8 times
Was thanked: 104 time(s) in 85 post(s)
No, you're 100% right. They've broken it in V9, it works as advertised in V8 and earlier. I think they owe you a copy of V8 until it's fixed, at least. Ouch. I'm willing to do it in V8 if you post a text list.

Edited by user Friday, August 14, 2015 7:55:48 PM(UTC)  | Reason: Not specified

thanks 1 user thanked murray for this useful post.
gensmenger on 8/15/2015(UTC)
gensmenger  
#8 Posted : Saturday, August 15, 2015 11:05:06 AM(UTC)
gensmenger

Rank: Junior Member

Joined: 10/9/2014(UTC)
Posts: 21

Thanks: 17 times
Thank you for the offer. I've already entered all 141 Data POINTS. I was able to import X & Y. Then go to each point and individually change the Z point from 0 to number that didn't import. So at least I didn't have to hand type X & Y.
Since each POINT has a sequencial reference ID number (like Point_771), I was able to add a column in Excel of each Point reference number so I could associate a point with a Z coordinate. Still painful.

I hope someone from PunchCAD sees this forum thread about this broken import feature of V9, and fixes it.
Tim Olson  
#9 Posted : Saturday, August 15, 2015 3:30:01 PM(UTC)
Tim Olson

Rank: Senior Member

Joined: 2/2/2007(UTC)
Posts: 5,447
United States

Was thanked: 502 time(s) in 353 post(s)
Thanks for the heads up. This is now fixed. The correction will appear in 1167 builds.

Tim
Tim Olson
IMSI Design/Encore
thanks 1 user thanked Tim Olson for this useful post.
gensmenger on 8/15/2015(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.