Hi all,
I've written some scripts to set current linetype and lineweight with command line and keyboard input. They are working exactly as I wanted, but Pen Toolbar is not updated when script runs. This is a little bit confusing for me. Can I introduce some function in script to update Pen Toolbar? Any help will be very welcomed.
Best regards,
set current linetype-lineweight scripts - How to update Pen Toolbar?
Moderators: andrew, Husky, J-J
- dfriasb
- Senior Member
- Posts: 119
- Joined: Thu Mar 10, 2016 1:08 pm
- Location: Calafell, Tarragona, Spain
set current linetype-lineweight scripts - How to update Pen Toolbar?
- Attachments
-
- lineweight1.js
- script that sets current lineweight to 0.13mm
- (1.15 KiB) Downloaded 582 times
-
- linetype2.js
- script that sets current linetype to id 2
- (1.25 KiB) Downloaded 597 times
Re: set current linetype-lineweight scripts - How to update Pen Toolbar?
A source of info might be:
PenToolBar.js
Regards,
CVH
PenToolBar.js
Regards,
CVH
Re: set current linetype-lineweight scripts - How to update Pen Toolbar?
What I read there is:
The startup values are gathered as: colorCombo.setColor(di.getCurrentColor());
di is the document interface.
On a value change it is stored as:
EAction.getDocumentInterface().setCurrentColor(color);
The diff with yours is that you change the document pen.
PenToolBar.js alters the document interface pen....
Regards,
CVH
The startup values are gathered as: colorCombo.setColor(di.getCurrentColor());
di is the document interface.
On a value change it is stored as:
EAction.getDocumentInterface().setCurrentColor(color);
The diff with yours is that you change the document pen.
PenToolBar.js alters the document interface pen....
Regards,
CVH