Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Loft Surface issue

swapnil_lokam
Contributor

Loft Surface issue

swapnil_lokam
Contributor
Contributor

Hi there,
I am trying to create a loft surface using a list of spline entities 
These splines are created using a geographical 3D coordinates 
My code is working perfectly fine (check the code below in the snap )

swapnil_lokam_0-1732704499985.png


This is how I am creating surface in AutoCAD 2024

swapnil_lokam_1-1732704663651.png

The above surface consists of around 25 splines each of length 745 units 
using all these splines I am creating a loft surface 

but when I am trying to create a loft surface on clients model 
I am facing performance issues in AutoCAD 

The client model consists of around 200 splines each of length 15000 units 
Even after waiting for around half an hour the surface is not being created on client's model 

Is there any other method to create a loft surface in AutoCAD other than CreateLoftedSurface() method that would help to create a surface with large no.of splines and with each spline having length of around 15000 units without affecting the performance.

It would be great if anyone can help me with the issue.
Thanks in advance....!!!

0 Likes
Reply
333 Views
5 Replies
Replies (5)

ActivistInvestor
Advisor
Advisor

The symptom you describe suggests a memory issue. How much physical memory do the system(s) that exhibit the performance issues have installed on them?

 

Also, in terms of memory consumption and execution time, the length of the splines is not relevant. It has more to do with the density of the splines (the number of control or fit points each spline has). 

 

Another thing you might want to do is compare the values of relevant system variables between your system and the ones having the performance issues.

0 Likes

swapnil_lokam
Contributor
Contributor

The number of control points on each splines are around 435 points and there are 200 such splines 

Is there any other way to create a surface using the control points which would not result in performance issue

0 Likes

ActivistInvestor
Advisor
Advisor

@swapnil_lokam wrote:

The number of control points on each splines are around 435 points and there are 200 such splines 

Is there any other way to create a surface using the control points which would not result in performance issue


Not that I'm aware of. Using the control points directly as vertices would not have the same result.

 

One thing you could try is to create the surface in an in-memory Database created via the Database constructor, and then clone or insert the surface into the active document once it's created. 

 

Did you investigate the other variables I noted (related system variable differences, and installed memory)?

0 Likes

Izhar_Azati
Advocate
Advocate

You wrote that you are using geographical 3D coordinates
I would try to "move" the data to the 0,0,0 area
Another thing, for many years there have been more practical forms for describing land surfaces, such as DTM

0 Likes

ActivistInvestor
Advisor
Advisor

@Izhar_Azati wrote:

You wrote that you are using geographical 3D coordinates
I would try to "move" the data to the 0,0,0 area
Another thing, for many years there have been more practical forms for describing land surfaces, such as DTM


Moving the geometry closer to the origin could affect the accuracy of the result, but not how long it takes to get there.

0 Likes