iLogic Add Component Pattern

iLogic Add Component Pattern

layochim
Enthusiast Enthusiast
205 Views
3 Replies
Message 1 of 4

iLogic Add Component Pattern

layochim
Enthusiast
Enthusiast

Hello,  is there a value i can enter into my code to make my parts pattern bi-directionally instead of using an axis direction?

 

Below is the line of code i'm working with.

 

Dim CarrywayPattern = Patterns.AddRectangular("Carryways", "CONFIG-500000 CARRYWAY:1", Carryways, Offset_Z, Nothing, "X Axis", columnNaturalDirection := True, rowCount := 1, rowOffset := 1.0 in, rowEntityName := "Y Axis", rowNaturalDirection := True)
0 Likes
Accepted solutions (1)
206 Views
3 Replies
Replies (3)
Message 2 of 4

ryan.rittenhouse
Advocate
Advocate
Accepted solution

I went digging through the API documentation and even popped into the debugger to look at the object directly and I don't see any way to set the Midplane option via the API. Looking around there are a few people who asked way back and an Autodesk Developer said is was not implemented.

 

The only way I can think of off the top of my head is to manually create the pattern with the midplane option on and suppress it until you need it. Then use code to turn it on, set a new column and components that you want to use. Cumbersome at best. Hoping someone else has a better answer.

If this solved your problem, or answered your question, please click Accept Solution.
0 Likes
Message 3 of 4

layochim
Enthusiast
Enthusiast

My thoughts were the same, i may perhaps need to use two axis directions and create a suppression rule on the components i don't want showing.

Thank you for the feedback.

0 Likes
Message 4 of 4

MjDeck
Autodesk
Autodesk

Hi @layochim - we can implement this in a future release. To increase the priority, please add your vote to this Idea.


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes