.NET

Reply
Contributor
qxzhu
Posts: 14
Registered: ‎08-28-2012
Message 1 of 7 (302 Views)
Accepted Solution

how to set AssocArrayPathParameters?

302 Views, 6 Replies
10-18-2012 05:29 PM

 Associative arrays have a Z direction option which specifies whether to maintain the original Z direction or to naturally bank the items along a 3D path. How to set the AssocArrayPathParameters to match Z direction?

ADN Support Specialist
Balaji_Ram
Posts: 666
Registered: ‎03-21-2011
Message 2 of 7 (250 Views)

Re: how to set AssocArrayPathParameters?

10-29-2012 09:27 AM in reply to: qxzhu

Hello,

 

I am looking into this and will get back to you with an update.



Balaji
Developer Technical Services
Autodesk Developer Network

ADN Support Specialist
Balaji_Ram
Posts: 666
Registered: ‎03-21-2011
Message 3 of 7 (243 Views)

Re: how to set AssocArrayPathParameters?

10-29-2012 11:35 AM in reply to: qxzhu

Hello,

 

Sorry, There is no such AssocArrayPathParameter property that will control the Z direction of the associative array.

For the same reason, it is also not possible to change the Z direction in the AutoCAD UI properties palette after the Associative array has been created. For example, you can change the "AlignItems" property using the properties palette but there is no such "Maintain Z direction" property.

 

I think when an AssocArray is created using the AutoCAD UI, the Z direction is set for the block references after the AssocArray is created. I have attached two screenshots that show the Normal value for the BlockReferences that represent the AssocArray for "Maintain Z direction=Yes" and "Maintain Z direction=No".

 

The Normal direction for the block reference can be computed based on the position of the block reference and the normal at a point on the path curve which is closest to the position of the block reference.

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Contributor
qxzhu
Posts: 14
Registered: ‎08-28-2012
Message 4 of 7 (225 Views)

Re: how to set AssocArrayPathParameters?

10-29-2012 03:59 PM in reply to: Balaji_Ram

 Balaji,Thank you very much.

Contributor
qxzhu
Posts: 14
Registered: ‎08-28-2012
Message 5 of 7 (219 Views)

Re: how to set AssocArrayPathParameters?

10-29-2012 05:21 PM in reply to: Balaji_Ram

hello,Balaji

i try it ,but the nomal have none change in my block refenrence.

ADN Support Specialist
Balaji_Ram
Posts: 666
Registered: ‎03-21-2011
Message 6 of 7 (198 Views)

Re: how to set AssocArrayPathParameters?

10-30-2012 10:44 AM in reply to: qxzhu

Hello,

 

I have attached a drawing and a screenshot to verify the Normal. The AssocArray in this drawing has been created with "Maintain Z direction=No". The Normal of the block references are different for each block reference and not equal to [0 0 1].

 

If you continue to have the issue, can you please share a simplified non-confidential drawing that you are using to verify this ?



Balaji
Developer Technical Services
Autodesk Developer Network

Contributor
qxzhu
Posts: 14
Registered: ‎08-28-2012
Message 7 of 7 (184 Views)

Re: how to set AssocArrayPathParameters?

10-30-2012 05:19 PM in reply to: Balaji_Ram

It's my mistake.I snoop the whole blockrefrence. The Normal of the block references are different for each block reference。Thanks again.

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