.NET

Reply
*GPaolo
Message 1 of 2 (279 Views)

arc.Normal = 0,0,-1

279 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 (279 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community