Message 1 of 2

Not applicable
10-23-2022
10:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
An ordinary application that only needs regional language settings to work properly.
Command code:
[Transaction(TransactionMode.Manual)]
[Regeneration(RegenerationOption.Manual)]
public class Command : BaseCommand
{
private FamilyTreeForm form;
protected override void Execute(ElementSet elements)
{
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo(Resources.Language);
CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo(Resources.Language);
form = new FamilyTreeForm(doc, mainHandle);
form.ShowDialogPlus();
}
}
Addin file:
<AddIn Type="Command">
<Assembly>FamilyTree\FamilyTree.dll</Assembly>
<ClientId>86317968-1B3F-4E8F-942E-0F4510BB5BC4</ClientId>
<FullClassName>Tom.FamilyTree.Command</FullClassName>
<Text>FamilyTree</Text>
<VisibilityMode>AlwaysVisible</VisibilityMode>
<LanguageType>Unknown</LanguageType>
<VendorId>TOM</VendorId>
<VendorDescription></VendorDescription>
</AddIn>
In addition, post submission insert code block is always more than a lot of useless empty lines, and also very bad control, I hope the official can repair a little.
Solved! Go to Solution.