Hi ALL,
I've seen people loading linetype file by using the following line:
Could you please explain what "*" does for?Code:(command "-linetype" "_load" "*" "acadiso.lin" "")
Thanks in advance.
|
Hi ALL,
I've seen people loading linetype file by using the following line:
Could you please explain what "*" does for?Code:(command "-linetype" "_load" "*" "acadiso.lin" "")
Thanks in advance.
The * would load all the linetypes in the .lin file
When you manually load a linetype a dialogue box asks to select the line type to load.
You could specify the name of the linetype to load in lieu of the * if you only wanted to load a single linetype.
The * (or asterisk) is used widely as this type of thing. It basically is a "wildcard" character which means "anything repeated indefinitely". It originated from the UNIX / DOS days ... e.g. the DOS command COPY *.* C:\TEMP would copy all files (irrespective of their name and / or extension) from the current directory to the Temp directory on the cdrive.
To see other similar wildcard characters see the wcmatch function's help in Developer Help.
Use the command-line version of the LINETYPE command and watch the prompts, filling in the answers as the (command...) function would, and note which option the "*" would be for. Its a good way to find out what almost any (command...) type function and its arguments do.
Thanks for everyone's helps.
These are very useful tips.
Yes, thanks, again, to irneb, steve & dgorsman.