ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

entity not drawn

6 REPLIES 6
Reply
Message 1 of 7
johnteng00
330 Views, 6 Replies

entity not drawn

hi guys,

could anyone please help. I have loaded a curve from a sat file, but when I save the entity into database, the spline curve is not shown on the graphic window. However, when I save the entity in a dwg file and reload the file again, then the spline is shown on the graphic window. could anyone please tell me which function to call to avoid such problem?

thanks
Eric
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: johnteng00

Try open with kForWrite flag, call draw() and recordGraphicsModified() method and close() it. Message was edited by: Alexander Rivilis
Message 3 of 7
amiltonf
in reply to: johnteng00

It sounds like you may be neglecting to close the spline after adding it to the database. Are you calling "close()" on the spline after adding it to the database?
Message 4 of 7
Anonymous
in reply to: johnteng00

Eric,

What happens when you type regen?

Regards Gary.


wrote in message news:5922140@discussion.autodesk.com...
hi guys,

could anyone please help. I have loaded a curve from a sat file, but when I
save the entity into database, the spline curve is not shown on the graphic
window. However, when I save the entity in a dwg file and reload the file
again, then the spline is shown on the graphic window. could anyone please
tell me which function to call to avoid such problem?

thanks
Eric
Message 5 of 7
johnteng00
in reply to: johnteng00

I have tried that.It doesn't work. I issue regen & regen all commands, the spline is not shown. If your guys want, I can sent your guys the file for testing.

However, if you load the ArxDbgd (sample codes for debug database), the spline is there. I need to try diffferent way to check. I use autocad 2007 for the application. The data seems ok to me.

thanks for your reply.
Message 6 of 7
Anonymous
in reply to: johnteng00

Post your's code. Without it is difficult to understand what wrong in code. Are you trying add spline to non-current document? If Yes - set it current before adding spline and switch to previous after.
Message 7 of 7
johnteng00
in reply to: johnteng00

thanks guy. the sat file I have got is not correct.
Appreciate your help.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost