Lisp that needs manual input

Lisp that needs manual input

M_c3d
Advisor Advisor
1,053 Views
3 Replies
Message 1 of 4

Lisp that needs manual input

M_c3d
Advisor
Advisor

Hi All,


I am trying to create a lisp that can be ran as part of a script to attach the reference templates to an existing job with about 100 drawings.

 

(defun c:reftemplate()
(command "_.-AttachReferenceTemplate" "J:\\Civil 3d\\Master Templates\\2020\\2020 Master Template.dwt")
)

 

The lisp opens the dialog box but doesn't then go onto the add reference template button.  I'm guessing some sort of link is missing between the command and the input

 

Any ideas?

 

Thanks in advance.

 

M_c3d_0-1630462696816.png

 

0 Likes
1,054 Views
3 Replies
Replies (3)
Message 2 of 4

BlackBox_
Advisor
Advisor

As I understand it -

 

Autodesk has not provided a Command Line version of any Reference Template functionality, which stinks, as we cannot even use Core Console + Script to then apply desired settings, etc to one or more drawings at once. 

 

TBH, last I saw, they've not even exposed this ability to .NET API, unless a recent C3D Update expanded the API, by chance.


"How we think determines what we do, and what we do determines what we get."

Chris (BlackBox) Bradley
Managing Partner / Developer / Civil Designer
Quux Software | Sincpac C3D | Style Explorer

0 Likes
Message 3 of 4

jsupanichUBKHA
Participant
Participant

Can't find it in 2025 API.

=(

0 Likes
Message 4 of 4

kidznok
Advocate
Advocate

Hi,
Still nothing?

0 Likes