Jump to content
Ms. Filipa Sanches

Exporting sections to an ASCII file

Recommended Posts

Hi,

 

I need to create a feature to export some sections of the hull form with a certain number of points.

 

The ideal would be to import the GroupSection created outside the Feature and then process the sections and create the points that i need. I try to do this but i am not able to import the groupSection to the feature and then export to an ASCII file. Is there any way to do it?

 

The other possibility that i tough was to generate the sections inside the feature by intersection of surfaces and then dealing with the creation of the points. The problem is that the hull form is a group of different sections and i am not able to import them to the feature and to intersect them. Is there any way to do it?

 

Thank you soo much for the help

 

Filipa Sanches

Share this post


Link to post
Share on other sites

Hey Filipa,

 

This is all posible.

The following things will help you.

  • Custom Exports: Blog post Here you can find a Forums post dealing with exports as well.
  • Export feature in CAESES: menu > features > tools > write blade sections
  • Another feature which does create a lofted surface from offsets/sections will also help you how to get the feature you want
  • menu > features > hull design > Lofted surface from offsets

 

If you can provide a file I will take a look at your feature.

 

Cheers,

 

Karsten

Share this post


Link to post
Share on other sites

Hey Filipa,

 

You can find attached a project file which exports a section group.

You have to define the file path, the section group and the number of points you want to export.

 

Hope it will help you. Let me know if you need more help or input.

 

Cheers,

 

Karsten

SectionExportftr.fdb

Share this post


Link to post
Share on other sites

Hi,

 

Thank you soo much for the help, its exactly this that i kneed but i the feature is given me an error.

 

It says:

Error: Line 23 [20,43]: Could not resolve command

Error: Line 24 [24,28]: Could not resolve object with name: pos

 

Do you know what is happening? 

 

Thank you for everything,

 

Cheers,

 

Filipa Sanches

Share this post


Link to post
Share on other sites

Hey Filipa,

 

Which CAESES version do you use?

I am using CAESES 4.0.3.

For CAESES versions below 4.0.3

change line 23:

    point pos(off2.getPosAtArcLength(tpos))

to

    point pos(off2.getPos(tpos))

This should be all.

Cheers,

 

Karsten

Share this post


Link to post
Share on other sites

Hi,

 

Perfect, it resolved everything.

 

One last thing, this feature creates N points on the sections that are with the same distance? For example in a curve 8 points, dividing the perimeter to seven and then we have the points?

 

Thank soo much, it was a huge help

 

Cheers 

 

Filipa Sanches

Share this post


Link to post
Share on other sites

Great.

 

well yes and no.

 

The getpos() command is running on the domain of the bsplinecurve and the domain is not spaced equdistant but the steps in the domain are equidistant.

Therefore the points do not have the same distance because the domain parameter changes with respect to the curvature of the curve.

 

You can add the following code line than the points should have equal distance.

 

Add it right after bsplinecurve off2(......) should be line 21/22.

  off2.setParametrization("unit speed")

Cheers,

 

Karsten

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...