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

view consecutive drawings

  • Thread starter Thread starter ferro.84
  • Start date Start date

ferro.84

Guest
Good morning to all,
I would like to create a button that allows you to scroll into annotation drawings with consecutive codes.

I'll explain.
within the same folder we have .mi files sorted in this order:
d445051001_0
d445051002
d445051003_0
...
And so on.

I would like to open the d445051001_0 file and then, with the new button, move to the next (d445051002_0), without uploading again from file>apri.

there will also be cases d445051001_1 (provisional progress), but it will be a next step.

Any idea how to do that?
I guess it needs an external file (a .txt?) with the list of codes contained in the folder to question the cad, but I don't know how to do it. .

thanks in advance
 
If you imagine so you are already good, come on, the developer kit has a similar example!
 
you can create a button with this code
for _1 things get complicated and I created a lisp to solve the problem

:title "+1"
:action "am_load_drawing :filename (format nil \"~2,'0d.mi\" (+ (parse-integer (sd-am-inq-drawing-no) 1))"
:description "loads the next n3 drawing in the current directory"
:ui-behavior :default)
 

Forum statistics

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

Members online

No members online now.
Back
Top