Hi.
From ObjectARX 2009:
public CommandMethodAttribute(
string groupName,
string globalName,
string localizedNameId,
CommandFlags flags,
Type contextMenuExtensionType,
string helpFileName,
string helpTopic
);
How can I use localizedNameId? I don't want use null. Give me code sample please...
From ObjectARX 2009: string localizedNameId - Input command localized name Id.
quote
here:
The LocalizedNameId is the string resource identifier
of the localized name of the command. If provided,
the localized name of the command is obtained from
the resource, which can be stored in a locale-specific
satellite resource assembly.
"resource" - is it resx-file in MS VS 2010?
if I set string value (for example "cmd1") for localizedNameId directly then:
Command: netload
Cannot load assembly. Error details:
System.Resources.MissingManifestResourceException: Could not find any resources
appropriate for the specified culture or the neutral culture. Make sure
"LocalizationExample.Class1.resources" was correctly embedded or linked into
assembly "LocalizationExample" at compile time, or that all the satellite
assemblies required are loadable and fully signed.
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo
culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo
culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo
culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetString(String name, CultureInfo
culture)
at System.Resources.ResourceManager.GetString(String name)
at Autodesk.AutoCAD.Runtime.CommandClass.AddCommand(ICommandLineCallable ca,
MethodInfo mi)
at
Autodesk.AutoCAD.ApplicationServices.AutoCADApplicationHolder.Initialize(Assembl
y assembly)
at
Autodesk.AutoCAD.ApplicationServices.ExtensionLoader.ProcessAssembly(Assembly
assembly)
thank you.