Create plugin install Visual Studio 2015 installshield

Create plugin install Visual Studio 2015 installshield

Anonymous
Not applicable
2,106 Views
8 Replies
Message 1 of 9

Create plugin install Visual Studio 2015 installshield

Anonymous
Not applicable

Hi, anyone have a HowTo step to produce installer for plugin, that install in different autocad versions , including autoload ?

 

Thanks

Carbonete

0 Likes
Accepted solutions (1)
2,107 Views
8 Replies
Replies (8)
Message 2 of 9

_gile
Consultant
Consultant

Hi,

 

About Autoloader, the most complete documentation is Fenton Web's white Paper.

 

Once your .bundle folder done (and working) it's quite easy to build an installer to deploy the .bundle directory in an ApplicationPlugin folder. You just need to change the the default installation folder to :

[AppDataFolder]\Autodesk\ApplicationPlugin, add a "ThisPlugin.bundle" directory and finally drag and drop your bundle in this folder.

 

If you can understand French, you can have a look at this screencast. It uses the "Installer Projects" extension instead of installshield.

 



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 9

Anonymous
Not applicable

Thanks, i´m trying make a test, but nothing happens, there is a way to debug or any log , to see if dll is loaded or xml contains error.
I copy my dll to C:\Program Files (x86)\Autodesk\ApplicationPlugins\NPPS.bundle

create .ico
create help.html
Create PackageContents.xml

 

<?xmlversion="1.0"encoding="utf-8"?>
<ApplicationPackage Schema Version="1.0"
AutodeskProduct="AutoCAD"
Name="NPPS"
Description="An AutoCAD program"
AppVersion="1.0.0"
HelpFile="Help.html"
Author="Kounen"
Icon="favicon.ico">
<Components Description="Runtime parts">
<ComponentEntry
ModuleName="./Lab1_Complete_2016.dll"
PerDocument="true"
LoadOnAutoCADStartup="false"
LoadOnCommandInvocation="true"
AppDescription="This is assembly"
AppName="CommandUI">
<Commands GroupName="CmdGroup1">
<Command Local="RECT-FRAME" Global="RECT-FRAME" />
<Command Local="TRIANG-FRAME" Global="TRIANG-FRAME" />
</Commands>
</ComponentEntry>
</Components>
</ApplicationPackage>

 

I don´t know if this interfere .

 

[assembly: CommandClass(typeof(Lab1.CommandUI))]
[assembly: ExtensionApplication(typeof(Lab1.CommandUI))]
namespace Lab1
{
class CommandUI : IExtensionApplication
{

[CommandMethod("RECT-FRAME")]
public void RecTruss()
{.... }

[CommandMethod("TRIANG-FRAME")]
public void TriangleTruss()
{...}

 

0 Likes
Message 4 of 9

_gile
Consultant
Consultant

Sorry, but it's quite difficult for me to explain the whole process in plain English.

 

  1. First, you have to debug your application while it works as expected.
  2. Then you can build your .bundle dirictory following the Help documentation and/or White Paper instructions.
  3. To test your bundle, you have to paste it in an ApplicationPlugins folder and launch AutoCAD to see if the app is loaded.
  4. When your bundle works, you can build an installer to deploy it.

 

From what I can see, some required tags are missing in your PackageContents.xml file:

  • CompanyDetails
  • RuntimeRequirements (within Components)
  • Commands (within ComponentEntry because your LoadReasons is set to LoadOnCommandInvocation="true")


Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 5 of 9

Anonymous
Not applicable

Hi I verify XML and made minor changes but not made  diference.

I Teste netload my app from bundle folder and they work, C:\Program Files (x86)\Autodesk\ApplicationPlugins\NPPS.bundle .

 

APPLOADER made any log ?

 

<?xmlversion="1.0"encoding="utf-8"?>
<ApplicationPackage Schema Version="1.0"
  AutodeskProduct="AutoCAD"
  Name="NPPS"
  Description="An AutoCAD program"
  ProductType="Application"
   AppVersion="1.0.0"
  HelpFile="Help.html"
  Author="Kounen"
  Icon="favicon.ico"
  ProductCode="6190391B-4338-4CEC-960B-591E63685D27">
  <Company DetailsName="Kounen"Url="www.kounen.com"Email="kounen@kounen.com" />
  <RuntimeRequirements OS="Win32|Win64"Platform="AutoCAD|AutoCAD*" />
  <Components Description="Runtime parts">
    <ComponentEntry
      ModuleName="./Lab1_Complete_2016.dll"
      AppDescription="This is assembly"
      AppName="CommandUI"
      Version="1.0.0">
    </ComponentEntry>
  </Components>
</ApplicationPackage>

0 Likes
Message 6 of 9

_gile
Consultant
Consultant

Hi,

 

Try putting the NPPS.bundle directory in "%ProgramData%\Autodesk\ApplicationPlugins" instead of "Program Files (x86)\Autodesk\ApplicationPlugins" which is deprecated since AutoCAD 2013 and will only work with AutoCAD 32 bits versions (x86).



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 7 of 9

_gile
Consultant
Consultant

One ore thing: according to your xml code, you should have a single directory named "NPPS.bundle" which directly contains the two files: PackageContents.xml and Lab1_Complete_2016.dll.

 

Here's a PackageContents.xml file based on a working one. It just contains some more tags.

 

<?xml version="1.0" encoding="utf-8"?>
<ApplicationPackage 
  SchemaVersion="1.0" 
  AppVersion="1.0.0" 
  Author="Kounen" 
  ProductCode="{6190391B-4338-4CEC-960B-591E63685D27}"
  UpgradeCode="{3CB9E490-C728-4A90-8EFF-3D5484FAF4FA}" 
  Name="NPPS" 
  Description="An AutoCAD program" 
  AutodeskProduct="AutoCAD" 
  ProductType="Application">
  <CompanyDetails 
    Name="Kounen" 
    Email="kounen@kounen.com" 
    Url="www.kounen.com" />
  <Components Description="Runtime parts">
    <RuntimeRequirements 
	  OS="Win32|Win64" 
	  Platform="AutoCAD*" 
	  SeriesMin="R19.0" 
	  SeriesMax="R21.0" />
    <ComponentEntry 
      AppName="BCountToolTip"
      Version="1.0.0"
      ModuleName="./Lab1_Complete_2016.dll"
      AppDescription="This is assembly" 
      LoadOnAutoCADStartup="True">
    </ComponentEntry>
  </Components>
</ApplicationPackage>


Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 8 of 9

Anonymous
Not applicable
Accepted solution

Error is in ApplicationPackage tag.

 

 

SchemaVersion="1.0" is invalid , correct is ApplicationPackage="1.0"

 

thanks

 

0 Likes
Message 9 of 9

_gile
Consultant
Consultant

scfAAAT6 a écrit :

Error is in ApplicationPackage tag.

 

SchemaVersion="1.0" is invalid , correct is ApplicationPackage="1.0"

 

thanks

 


What you say really amazes me.

By my side, all the applications I (successfull) use* have SchemaVersion="1.0" attribute.

ApplicationPackage is a tag, not an attribute and cannot have an assigned value.

 

* including those from Exchange Apps Store those from AutoCAD installation.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes