Jump to content

Recommended Posts

Posted

hi, any gstarcad user here..?

having an issue when using totalLayouts lisp program import into Gstarcad (Gstarcad standard version 2025)

it seem doesn't work, here are the lisp program

;Sets totalLayouts automatically - then use Field: %<\AcVar.17.0 Lisp.totallayouts>%
;CAD Studio, 2016
(defun _totalLayoutsReactor (a r)
 (setq totalLayouts (length (layoutlist)))
)
(vlr-command-reactor nil '((:vlr-commandWillStart . _totalLayoutsReactor)))

 

i think there might be some changes in the "field"

and i was stuck in the gstarcad field, system variables command.

any 1 have experience on this?

Capture.PNG

Posted

Works in Bricscad V24, another way around this is to go through the layouts and update the total sheets in the Layout title block. This is what we used. 

 

Try copying the (setq totalLayouts (length (layoutlist))) to the command line you should get a number, then do mtext and choose the lisp variable totallayouts, if this works then the issue is in the reactor.

 

Please advise.

Posted
5 hours ago, BIGAL said:

Works in Bricscad V24, another way around this is to go through the layouts and update the total sheets in the Layout title block. This is what we used. 

 

Try copying the (setq totalLayouts (length (layoutlist))) to the command line you should get a number, then do mtext and choose the lisp variable totallayouts, if this works then the issue is in the reactor.

 

Please advise.

hi BIGAL, thanks for the solution..

btw i m not so expert into command line, is there any code i can change modified the lisp, and just load the lisp file..?

Posted

Just copy this to command line

 

(layoutlist)

 

A list of all your layouts should appear. That is 1st step towards finding out what is wrong. If no display let us know.

 

Second step is paste this to command line

 

(setq totalLayouts (length (layoutlist)))

 

a number should appear

 

3rd step make Mtext and use the field option,

select totallayouts a number again should appear.

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...