Data Input Prompts Upon Opening Drawing

Data Input Prompts Upon Opening Drawing

Anonymous
Not applicable
1,368 Views
4 Replies
Message 1 of 5

Data Input Prompts Upon Opening Drawing

Anonymous
Not applicable

I would like to create autocad drawings that force a user input upon opening the file. An input window must appear when the autocad drawing is opened that requests a Quantity value which updates to a field on the drawing. How can this be accomplished?

 

I am aware that Attributes will prompt the user to input data upon inserting a title block. Is there any way to force similar behaviour upon the opening of the drawing itself?

0 Likes
1,369 Views
4 Replies
Replies (4)
Message 2 of 5

Kent1Cooper
Consultant
Consultant

Is this about certain drawings only, or do you want it to happen with the opening of every  drawing?

 

If the latter, there's an easy way to get the User prompted for a value that would go into a variable.  I'm not adept with Fields, but I imagine there's a way to then put that variable value into one.

 

If not in every drawing, the same could be done for certain ones if there's a reliable way to identify whether the drawing you're opening is one of those -- something about the file name, the presence of a particular Layer or Block name, etc.

 

Either way, as I imagine them, would involve an acaddoc.lsp file, which runs in every drawing opened, but there may be other ways to accomplish it.

Kent Cooper, AIA
Message 3 of 5

Sea-Haven
Mentor
Mentor

Made a Bundle and an option is run on start up my case a FAS file.

 

screenshot216.png

0 Likes
Message 4 of 5

lena.talkhina
Alumni
Alumni

Welcome to the Autodesk Community @Anonymous !

 

Great to see you here on LISP forum. Hope you will find a solution soon.

Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям! | Do you find the posts helpful? "LIKE" these posts!
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.



Лена Талхина/Lena Talkhina
Менеджер Сообщества - Русский/Community Manager - Russian

0 Likes
Message 5 of 5

samZ485F
Participant
Participant

This is certainly a good start.  I will look into AutoLISP techniques of attaining this functionality. Thank you for the accaddoc.lsp tip, I'm sure that will be useful in finding a solution.  I will report back to this post to share with the community when I develop a method of accomplishing this.

0 Likes