API Curve creation Issues

Creator
Creator

I seem to be encountering an issue after creating curves through the API.

 

Picture 1 shows the curves displayed after calling an update view function:

 

Public Sub updateView(femApp As femap.model)

femApp.feAppVisible(True)
femApp.feViewRegenerate(0)
femApp.feViewRedraw(0)
femApp.feViewAutoscaleAll(0, True)

End Sub

 

The database is then closed using:

 

updateView(femApp)

femApp.feFileSaveAs(False, sFileName)


If bCloseDb Then
femApp.feAppVisible(False)
femApp.feFileClose(False)
femApp = Nothing
End If

 

Picture 2 shows the curves on re-opening the database. As you can see the curve IDs are the same but the some of the start/end locations have changed? 

 

Any ideas how this might occur?

 

 

2 REPLIES 2

Re: API Curve creation Issues

Gears Phenom Gears Phenom
Gears Phenom

Hello willm,

 

Please attach an API with creation curves too.

 

Best regards

 

Peter Kaderasz

Re: API Curve creation Issues

Creator
Creator

Hi Peter,

 

Thanks for the response.

 

I traced the error back to the way it created and handled the points for the curves. My confusion was because the curves initially appeared correct but changed after closing the database. Not sure why they weren't just always wrong but hey ho, its fixed now

 

cheers

Will