select text createting BOM in table

select text createting BOM in table

Gaganpatel
Collaborator Collaborator
785 Views
11 Replies
Message 1 of 12

select text createting BOM in table

Gaganpatel
Collaborator
Collaborator

Dear Sir,

 

Please help select text creating BOM in table auto lisp programming.

Please see the sample drawing.

0 Likes
786 Views
11 Replies
Replies (11)
Message 2 of 12

Sea-Haven
Mentor
Mentor

This is an add on to your other post I can see dwg has been tidied up a bit. The member and notation are now close.

 

The schedule says 4 in Qty where is that coming from ?

 

Yes can look for text and look close by for member label. providing 34 & 35 are away form something then they will not be added in. I think you need to have a custom draw the structure routine, that way everything is linked correctly. Can you explain how you draw the members ? Is it based on a centre lines pattern ?

 

I have to find your other post but it makes more sense that as you draw members you add say Xdata then the BOM is easy.

 

0 Likes
Message 3 of 12

Moshe-A
Mentor
Mentor

@Gaganpatel  hi,

 

To do what you want out of your sample dwg is impossible. there is no much different between your drawing and manual drawing,  you need to start using the system as CAD program by using blocks for repeating symbols - ok? 🤣

 

so Attached profile.zip file containing 2 files:

 

1. A modified "Sample Str.dwg" 

2. profile.VLX  (load it with appload)

 

in the modified dwg i created a new block called "profile" it is a dynamic attribute block to cover all annotations. this block is intended to replace each of your "profiles". of course it could be done manually but profile.VLX contain a PROFILE command to to it.

 

follow these instruction carefully

 

Command: PROFILE

Pick "section" annotation:  < pick "L75X75X6" >

the function here will reject unmatched text, only "section" is applicable.

Select mark number...
Select objects: < select the mark no + the circle >

Delete existing profile <Y>: < Yes or No for deleting the origin >

profile is replaced, you need to do it for each one. when finished, you move to BOM table. remember,  "Sample Str.dwg" is ready for table.

 

Command: BOM

Select objects(s):  < Select all profile blocks >

Table insertion point:  < specify upper left corner >

 

if you use INSERT to insert profile block and the MARK NO comes on the wrong side, you can pick the mark and move it. also if the mark angle is not 0, you can pick the rotation grip to rotate it. these 2 functions does not effect the "section" annotation. also do not change attributes tag names and their order,  this will cause the lisp command to not work.

 

that it mate 😀

 

enjoy

Moshe

 

 

 

 

 

 

0 Likes
Message 4 of 12

Sea-Haven
Mentor
Mentor

Like Moshe-A I would look at a block with 2 attributes, the 1st is a number, the second is the member text that you have picked, the second attribute is set to "invisible" so its not displayed but its there. Its easy then to make a table.

 

You make the block post a new dwg then can look at a insert with the correct attribute values.

0 Likes
Message 5 of 12

Moshe-A
Mentor
Mentor

@Gaganpatel ,

 

well? we all here anticipating for your comment?

 

 

0 Likes
Message 6 of 12

Gaganpatel
Collaborator
Collaborator

Dear Sir,

 

Thanks for replay.🙏🙏

 

Possible select all section & mark Nos. at a time for profile making. 

Angle draw & profile making automatic any programming please share sir.

Example : select Center line making the angle with profile.

 

 

0 Likes
Message 7 of 12

Gaganpatel
Collaborator
Collaborator
Sir,
Please share Plate item profile & bom create programming
See the Previous attachment
Example : Mark : 34 PL-173X6 LG=191
0 Likes
Message 8 of 12

Moshe-A
Mentor
Mentor

@Gaganpatel ,

 

first, have you successed in using BOM?

 

the profile command, is for helping you convert an existing simple profile in to dynamic, attribute block.

for new profiles use the insert command.

 

Moshe

 

 

 

0 Likes
Message 9 of 12

Gaganpatel
Collaborator
Collaborator

Dear Sir,

BOM using work good but I want to select at a time many text section & Mark Nos. create dynamic attributes profile blocks.

0 Likes
Message 10 of 12

Moshe-A
Mentor
Mentor

@Gaganpatel ,

 

Wow, given the manually sample drawing you are now start thinking out of the box and  i likes that but also want to pore some cold water 😀

 

Selecting all objects in one shot may also bring other unwanted objects like other dynamic blocks, other texts and circles.

 

Having that, trying to make the right connection\match between "section" and "mark no" and "mark no" and it's "circle" is a huge challenge. i am not saying this is impossible but is this worth the effort? it took me a full day to create the profile dynamic/attribute block + the profile.vlx.

 

So settle with what you have now - it's free 🤣

 

Moshe

 

 

0 Likes
Message 11 of 12

Sea-Haven
Mentor
Mentor

Post your line dwg that you use to make the structure and also a completed like previously posted. So 2 stages in a dwg. Then can look at converting a line to a multi line answer and adding the correct block with attributes that can be used to make a table.

 

Its going down the customer customisation path and a donation may be asked. 

0 Likes
Message 12 of 12

Gaganpatel
Collaborator
Collaborator

Thank You so much Sir,

0 Likes