0
How to get these units?
New Here
,
/t5/illustrator-discussions/how-to-get-these-units/td-p/1254007
Aug 09, 2008
Aug 09, 2008
Copy link to clipboard
Copied
Please follow the steps:
1. Edit->Preferences->Units & Display performance... to bring the dialog.
2. In "Units" group, we can change units for "General", "Stroke", "Type" and "Asian Type".
We can use AIUserSuite::GetUnitsString to get the general units, but how to get the other three units? Does anybody know it?
thanks
1. Edit->Preferences->Units & Display performance... to bring the dialog.
2. In "Units" group, we can change units for "General", "Stroke", "Type" and "Asian Type".
We can use AIUserSuite::GetUnitsString to get the general units, but how to get the other three units? Does anybody know it?
thanks
TOPICS
SDK
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explore related tutorials & articles
Guide
,
/t5/illustrator-discussions/how-to-get-these-units/m-p/1254008#M238630
Aug 11, 2008
Aug 11, 2008
Copy link to clipboard
Copied
Interesting, I don't see anything in the API for doing that. Unless someone can find it squirreled away somewhere, it looks like there might be a hole in the API where this is concerned.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
/t5/illustrator-discussions/how-to-get-these-units/m-p/1254009#M238631
Aug 11, 2008
Aug 11, 2008
Copy link to clipboard
Copied
Hi,
You can get these units with AIPreference Suite.
long units;
sAIPreference->GetIntegerPreference(NULL, "strokeUnits", &units);
sAIPreference->GetIntegerPreference(NULL, "text/units", &units);
sAIPreference->GetIntegerPreference(NULL, "text/asianunits", &units);
These suffix strings were found in AIPrefs file.
You can get these units with AIPreference Suite.
long units;
sAIPreference->GetIntegerPreference(NULL, "strokeUnits", &units);
sAIPreference->GetIntegerPreference(NULL, "text/units", &units);
sAIPreference->GetIntegerPreference(NULL, "text/asianunits", &units);
These suffix strings were found in AIPrefs file.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Guide
,
/t5/illustrator-discussions/how-to-get-these-units/m-p/1254010#M238632
Aug 12, 2008
Aug 12, 2008
Copy link to clipboard
Copied
Very cool! Thanks!
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
_duandc_
AUTHOR
New Here
,
/t5/illustrator-discussions/how-to-get-these-units/m-p/1254011#M238633
Aug 12, 2008
Aug 12, 2008
Copy link to clipboard
Copied
where is AIPrefs file? thanks!
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Contributor
,
/t5/illustrator-discussions/how-to-get-these-units/m-p/1254012#M238634
Aug 13, 2008
Aug 13, 2008
Copy link to clipboard
Copied
You don't need to access the prefs file directly, the values are just stored there. They can be obtained using AIUserSuite::GetUnitsString.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
_duandc_
AUTHOR
New Here
,
LATEST
/t5/illustrator-discussions/how-to-get-these-units/m-p/1254013#M238635
Aug 14, 2008
Aug 14, 2008
Copy link to clipboard
Copied
Thanks! Jeshua.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

