Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Re: Fractals

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-13-2016
03:56 AM

07-13-2016
03:56 AM

Fractals

Hi!

I would like to send this data to Creo, to create a 3D Model, is there a way to do so?

Many thanks,

Ioana

Labels:

17 REPLIES 17

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-13-2016
07:10 AM

07-13-2016
07:10 AM

Re: Fractals

Hello Ioana, I did everything I could do. With the data available, in fact, I could not do much. In the picture I give you some suggestions.

Greetings

FM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-13-2016
10:04 AM

07-13-2016
10:04 AM

Re: Fractals

Please find in attachment some examples of creating fractals.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-14-2016
04:02 AM

07-14-2016
04:02 AM

Re: Fractals

These are amazing!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-13-2016
10:07 AM

07-13-2016
10:07 AM

Re: Fractals

This Mathcad Prime worksheet can be found in attachment as a PDF document for a preview (for those who have trouble with opening Prime 3.1 worksheet).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-13-2016
03:18 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-13-2016
08:04 PM

07-13-2016
08:04 PM

Re: Fractals

> I would like to send this data to Creo,

Which data?? The sheet you posted is faulty and unfinished. It does not create any data!

Here is, following the lines you provided, a solution in Mathcad 15. In Mathcad 15 we have a picture operator and so we can immediately see the result of our calculation (as you provide only one value per point its just gray-scale image.

In Prime you can just save the image using the WRITEBMP command (as shown in the picture) and display it externally.

The Matrix with the values can be exported in a couple of different formats, if this helps importing them in Creo.

In Mathcad 15 you could also create a 3D-Plot or a Contour-Plot using the very same data matrix and color it using a colormap of your choice.

Regards

Werner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-14-2016
02:54 AM

07-14-2016
02:54 AM

Re: Fractals

Initially, I have been inserting by mistake the wrong worksheet. Here is the one I meant, sorry for all the trouble.

One more thing: In order to send it to Creo I would need Prime 3.1, and moving from MC15 to Prime can be harsh sometimes, since some of the old functionalities have changed and get lost during conversion. I will try to see if it works with bmp first.

Thank you all for your responses!

Ioana

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-14-2016
05:55 AM

07-14-2016
05:55 AM

Re: Fractals

> and moving from MC15 to Prime can be harsh sometimes

you mean that there are times when its not harsh? 😉

> I will try to see if it works with bmp first.

If you just want to transfer the data, generating an Excel file, a CSV file, some other binary file type or even ASCII might be a better way to exchange the data.

Lookup WRITEEXCEL, WRITECSV, WRITEBIN or WRITEPRN in the help.

WE

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-15-2016
12:01 AM

07-15-2016
12:01 AM

Re: Fractals

>Lookup WRITEEXCEL, WRITECSV, WRITEBIN or WRITEPRN in the help.

...And WRITERGB function.

Viktor

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-15-2016
03:25 AM

07-15-2016
03:25 AM

Re: Fractals

> ...And WRITERGB function.

Not sure if this is better suited to input the raw data into Creo, as was initially demanded. Don't know Creo, so I can't tell.

Guess you mixed up the order of the arguments! Zero should be the last one, not the first. The way you have written it, the first argument is evaluated and is always false (0). So in every case the last expression is chosen. You don't get 0 for the inner area that way.

Moreover it does not make much sense to make the value dependent on the width. Either use counter or counter/iterations on its own and let Creo do the rest or replace width width in that expression for the maximal color number in use (255).

WE

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-17-2016
10:34 AM

07-17-2016
10:34 AM

Re: Fractals

In attachment can be found the worksheet that record matrix data into STL file format as a 3D model, which can easily be used later in Creo Parametric. But I have at the last moment of calculation when writing STL file the following error - "**Not enough memory for this operation**". I test it on Win 8.1 x64 with 8Gb of RAM. Can someone please check it?

**P.S.** For a viewing STL file format you can easily use "Online STL viewer", here: Free online STL viewer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-17-2016
12:03 PM

07-17-2016
12:03 PM

Re: Fractals

Same Problem: Windows 10 64-bit, 8GB.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-25-2016
11:38 AM

07-25-2016
11:38 AM

Re: Fractals

Vladimir,

As covered below, it looks as though the STL matrix is large enough that converting it to binary puts it near some memory limit. Predefining the binary vector size seems to help, although not consistently. I suspect that it would be better to use binary STL rather than text for a file of this size. I would be interesting to see if Prime could handle the conversion to binary without problem (it should).

Stuart

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-25-2016
11:45 AM

07-25-2016
11:45 AM

Re: Fractals

Forgot to add ...

Running on Windows 7 Enterprise, 8 GiB

Both the WRITEFILE2 and File Output component (.prn) STL files render seemingly correctly on the STL viewer (neat!) (and after renaming the .prn file to .stl).

Stuart

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-28-2016
05:12 AM

07-28-2016
05:12 AM

Re: Fractals

Stuart,

Thank you for investigation.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-26-2016
02:47 AM

07-26-2016
02:47 AM

Re: Fractals

Objective achieved!

Last week I also continued to play with Mathcad and Creo in order to create a 3D fractal model to be 3D printed later.

It may sound harsh to transform a matrix of 300 rows into a 3D-converted readable, modifiable graph but not quite as harsh as it really is. And interesting!

There were many ideas, one of them being to make a matrix of 3 strings with those strings containing some informational values from the given function, another one was to write a .stl custom function, and other ideas such as these 2 that were driven by the Community responses to my proposed question:

After trying to create a STL file from Mathcad Prime 3.1 that I saw to be possible, according to this Demo:

http://www.ptc.com/video?id=4002771978001&account=Demos

I found out that this customized function would require a .dll with background programming so I skipped directly to this life saver tool that converts 2D images in 3D objects, aka .stl files.

http://app.selva3d.com/transform (5 free trials)

After transforming it, I still had some more steps to do - to make it solid, in order to extrude it afterwards.

Some of the steps, if anyone ever interested, can be found here: https://www.youtube.com/watch?v=ho-t5OgEbJY

which lead to that is set at a level that contains not too many details, because otherwise, when printing, it would be very messy and many of those details would be lost anyway.

After some finishing strokes, I moved the part through MakerBot, that transformed as you may now see below:

And the tangible result:

Tada!!!

As I have previously mentioned, this was a personal project, resulted from both my passion for fractals (there are even college classes about them nowadays) and because I wanted to verify if we can create a Model/Part that uses big data (sort of) with the Mathcad-Creo Integration.

As so I have seen it works!

Other interesting 3D printed models can be found here:

https://3dprint.com/50133/3d-printed-fractals-2/

& here:

http://www.thingiverse.com/glitchpudding/collections/fractals/page:2

I have also printed 2 of them the other week:

This one http://www.thingiverse.com/thing:1123004

And this one:

Best regards,

Ioana

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-28-2016
05:14 AM

07-28-2016
05:14 AM

Re: Fractals

Continue in the same spirit!