ILOGIC code for selecting a file and drop flat pattern automatically

ILOGIC code for selecting a file and drop flat pattern automatically

ageorgeZ8MDH
Explorer Explorer
307 Views
4 Replies
Message 1 of 5

ILOGIC code for selecting a file and drop flat pattern automatically

ageorgeZ8MDH
Explorer
Explorer

Hi All,

 

I was looking in the forum for an iLOGIC code that when run can open the File Explorer to select a .ipt file. Once selected it can drop the FLAT PATTERN of that .ipt in the drawing sheet. I looked a lot but couldn't find anything. I am no good with coding so I don't know how to write the code. If anyone has an idea of how to go about it or a iLOGIC code that I can use, it would be greatly appreciated.

0 Likes
308 Views
4 Replies
Replies (4)
Message 2 of 5

Frederick_Law
Mentor
Mentor

You do know it can be done in the drawing without iLogic?

Start a Base View:

DrawingFlat-01.jpg

Once you pick a file:

DrawingFlat-02.jpg

 

What do you need from iLogic that is not available from the above?

Message 3 of 5

ageorgeZ8MDH
Explorer
Explorer

Yes I know. But I want to select multiple Sheet Metal parts and have their "View Identifier" be placed along with it. My View identifier has information such as material Qty etc. So if I can do all SM parts for one assembly that would make my workflow pretty quick

0 Likes
Message 4 of 5

Frederick_Law
Mentor
Mentor

Now we got a bit more information.

So multiple flat in same drawing, same sheet?

Or same drawing different sheet?

Or different drawing?

 

Where does Material and QTY come from?

Custom iProp in the part?

 

To write a program, we first need to write down step by step of what we need to do.

The program just repeat all the steps we took so we don't need to.

Message 5 of 5

A.Acheson
Mentor
Mentor

Hi @ageorgeZ8MDH 

Here is the first post I found to place flatpattern to a drawing. Search keywords I used "ilogic place flatpattern to drawing"

 

Because your request involves multiple documents and is a complex operation you need to break the steps down into parts. This will help you find the information you need which is not necessarily available in the workflow your using. 

I would approach this from this order starting with the most difficult one. 

 

1. From part create drawing and place flatpattern and save.

2. Create dxf from drawing.

3. From assembly find all parts with subtype sheetmetal.

3.1 Use reference documents as this will only search The main document and not all the occurrences. 

3.2 Filter for Part Document

3.3 Filter for Sheetmetal Sub Document.

 

Instead of working in windows searching for parts it would be easier to use the built in methods and work through the assembly documents as this will be automatic and easier to manage. 

 

As you can see from above summarized steps there is alot to work through. If your looking to improve your skills I would suggest to work through the small steps and try not to fast track with just copy and paste as there is rarely much learning taking place.  

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes