• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

numbering photovoltaic panels

  • Thread starter Thread starter manuelmascaro
  • Start date Start date

manuelmascaro

Guest
Good morning.
I have 4200 photovoltaic panels to number with a number of type 1.1. 1.2 etc for the string(understood as a number of photovoltaic panels) 1 2.1 2.2 etc for the second string and so on.
I would therefore need a tool that allows me before or after inserting the "pannello" block to select the elements of the string and numerarli accordingly.

I tried with the tools on the forum but failed to bend them to my needs.

Is there anyone who can help me? ?

greetings

Manuel
 
Good morning.
I have 4200 photovoltaic panels to number with a number of type 1.1. 1.2 etc for the string(understood as a number of photovoltaic panels) 1 2.1 2.2 etc for the second string and so on.
I would therefore need a tool that allows me before or after inserting the "pannello" block to select the elements of the string and numerarli accordingly.

I tried with the tools on the forum but failed to bend them to my needs.

Is there anyone who can help me? ?

greetings

Manuel
but the numbering will be a text or you put an attribute in the block (according to me the best thing).

then the string selection do you do it how?

explains the sequence you manually and then try to automate it.

Maybe by attaching an example file, you don't need all 4500 strings.
 
certainly the way of the block is the best for what concerns the selection of strings, i.e. of groups of 20 25 panels, I can do it quietly by selecting from time to time the individual elements also because they often have serpentine steps hardly identifiable a priori.
I hope I've been clear

thanks from now on
 
certainly the way of the block is the best for what concerns the selection of strings, i.e. of groups of 20 25 panels, I can do it quietly by selecting from time to time the individual elements also because they often have serpentine steps hardly identifiable a priori.
I hope I've been clear

thanks from now on
you can attach the panel block with the attribute.
 
What version of autocad you use?

If it were in vba and not in lisp would it be okay anyway?
 
look not having answer I did, so I had a code almost ready

is in vba though (if you don't have the module installed you can download it for free from the autodesk site)

If you have problems with the macro version, let me know

from the tools-> macro-<carica allegato="" da="" delezioni="" dvb="" fiel="" il="" poi="" progetto="" strumenti-="">macro-> management selections_stringhe.dvb!modulo1.number_stringhe

select strings to number
insert the string prefix (example 1)
Enter the starting number for numbering (example 1)

the resolved will be 1.1 -> 1.x docve x is the number of selected strings.

try to see if it is ok!!!</carica>
 

Attachments

autocade 2012 64bit
Then the macro above should go well as download it!

try and let me know if I correctly interpreted your instructions.

the macro is not protected so you can see it and if you know where to put hands make adjustments!
 
I tried but if I insert the panel object and I create several copies once the application loads it does not select the objects.. .
 
ps I tried on a new file and it works.... now I try it on the mw project.

Thank you very much
 
shape. I confirm the excellent functionality.
At this point I was wondering if it was possible to automate the macro in a button to call it back easily.
 
shape. I confirm the excellent functionality.
At this point I was wondering if it was possible to automate the macro in a button to call it back easily.
Yes... then the procedure is as follows:

assuming you know how to customize a button, go to the macro entry of the command menu and write:
^c^c_-vbarun;pathway where yousavethemacro/management_stringhe.dvb!modulo1.number_stringhe

attention only that in the path you have to unsare / and not \ as in windows

example c:\documents and settings\desktop\ will be c:/documents and settings/desktop/

and should work
 
then I created the button and in the macro line I wrote so:

^c^c_-vbarun;c:/users/users/desktop/autocad macro/management_stringhe.dvb!modulo1.numera_stringhe


but does not find the command:(
 
solved. the problem was space.
I don't really know how to thank you
As I told you before I took much of the macro that I had already for other and modified qlc row.. nothing more!!!

next time.
for moderators, you can move to vba for autocad !!! grazie.
 
I'm asking for venia, I'll do it now.

shape I opened the project file with the 4200 panels (as block) already arranged but the program does not select them. is it to change the program or is it something easy to solve? the block of examples was called pn this has a name a$c38b4161f
 
I'm asking for venia, I'll do it now.

shape I opened the project file with the 4200 panels (as block) already arranged but the program does not select them. is it to change the program or is it something easy to solve? the block of examples was called pn this has a name a$c38b4161f
If he changes his name obviously does not take it, as and does not write the number if he does not have the attribute.
I thought it was discounted!!! you can easily solve with the express command changes block with other block or rename the block a$c38b4161f in pn if it has the attribute.

or enter the macro and edit where it is written filterdata(1)="pn" in filterdata(1)="a$c38b4161f" but do not recommend it
 
I have tried and selected them but in many at the end of the macros there is nothing and he says he has appointed from 1.1. to 1.1.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top