.NET

Reply
*GPaolo
Message 1 of 2 (300 Views)

arc.Normal = 0,0,-1

300 Views, 1 Replies
08-02-2006 06:58 AM
Dear all ,i need a big pleasure.
i have insert a dxf in my drawing and when i make the command "_list " a see
that someone arc or circle have the normal's Z value set to -1,but i see the
correct display
then the VBA Api i make the changement with the instruction :

if arc.normal.z=-1 then
arc.normal.z=1
arc.update
endif
when is finish i have correct normal and correct display


now i have rewrite for .NET Api with this code:
if arc.normal.z=-1 then
arc.normal=new acge.vectord3d(0,0,1)
end if
but this code don't work.
when i have finish i see the correct normal but the incorrect display.


Some help?
Thank's in advance
GPaolo
*GPaolo
Message 2 of 2 (300 Views)

Re: arc.Normal = 0,0,-1

08-02-2006 11:16 PM in reply to: *GPaolo
I have resolved.

here the solution.

many thank's at all

GPaolo

'--------------------------------------------------------

Dim nulltransform As New AcGe.Matrix3dBuilder

nulltransform.ElementAt(0, 0) = 1

nulltransform.ElementAt(0, 1) = 0

nulltransform.ElementAt(0, 2) = 0

nulltransform.ElementAt(0, 3) = 0

nulltransform.ElementAt(1, 0) = 0

nulltransform.ElementAt(1, 1) = 1

nulltransform.ElementAt(1, 2) = 0

nulltransform.ElementAt(1, 3) = 0

nulltransform.ElementAt(2, 0) = 0

nulltransform.ElementAt(2, 1) = 0

nulltransform.ElementAt(2, 2) = -1 'VALUE SET TO CHANGE NORMAL

nulltransform.ElementAt(2, 3) = 0

nulltransform.ElementAt(3, 0) = 0

nulltransform.ElementAt(3, 1) = 0

nulltransform.ElementAt(3, 2) = 0

nulltransform.ElementAt(3, 3) = 1

If Arc.Normal.Z = -1 Then

Arc.TransformBy(nulltransform.ToMatrix3d)

End If


"GPaolo" ha scritto nel messaggio
news:5256092@discussion.autodesk.com...
Dear all ,i need a big pleasure.
i have insert a dxf in my drawing and when i make the command "_list " a see
that someone arc or circle have the normal's Z value set to -1,but i see the
correct display
then the VBA Api i make the changement with the instruction :

if arc.normal.z=-1 then
arc.normal.z=1
arc.update
endif
when is finish i have correct normal and correct display


now i have rewrite for .NET Api with this code:
if arc.normal.z=-1 then
arc.normal=new acge.vectord3d(0,0,1)
end if
but this code don't work.
when i have finish i see the correct normal but the incorrect display.


Some help?
Thank's in advance
GPaolo
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!