Tag: Inventor API
-
Sorting “invalid arguments” error in C# add in code for generating 3D PDF in Inventor
<?xml encoding=”UTF-8″>The VB.NET add-in for 3D PDF generation works well and directly without issues. However, the C# API code throws an invalid arguments error at the Publish() method. This is because the code uses late binding. This blog contains steps on how to resolve this error Step 1:As mentioned in this blog (here) set the…
-
Inventor 2014 APIの クラストレーニングマテリアルの公開
Inventor 2014 API クラストレーニング 向けに作成された教材一式「マテリアルと実習テキスト(chm)及び 演習と実習の回答 」を公開いたします。 公開されるコンテンツは、Inventor 2014 APIクラストレーニングテキスト(.ppt P.370)を pdf ファイルに変換した “Inventor2014API .Net Training_J.pdf”、テキスト内の演習問題と各開発ガイド(実習)を説明した「演習と実習ヘルプファイル」の”Inventor2014API Exercise.chm”、「演習と各開発ガイド(実習)の回答」( 14の演習回答 と 80の実習の回答) をそれぞれVBAマクロファイルとVisual Studio 2010(VB.Net)のプロジェクトとしたファイル群、また「演習と各開発ガイド(実習)で使用するInventorファイル群」の公開となります。 ・Inventor 2014 APIクラストレーニングテキスト ・演習と実習のヘルプファイル ・演習と実習ガイドの回答 関連ファイルのダウンロード先: 1. Inventor 2014 APIクラストレーニングテキストは、 ココ よりダウンロードできます。 また「QA- Inventor 2014 APIの クラストレーニングテキスト」 からもダウンロードできます 2. 演習と実習のヘルプファイルと回答は、 ココ よりダウンロードできます。 また「QA- Inventor 2014 APIの クラストレーニングテキスト内の演習問題と実習ガイドと回答」 からもダウンロードできます。 3.演習と実習に使用するファイル群は、 ココ よりダウンロードできます。 また「QA-…
-
Inventor 2014 API 新機能 その4
「Inventor 2014 API 新機能 その1」「Inventor 2014 API 新機能 その2」「Inventor 2014 API 新機能 その3」に続き、Inventor 2014の新しい機能に対するAPIについてご紹介させていただきます。 「Inventor 2014 機能 その1」でもご案内させていただきましたが、大規模アセンブリファイルのファイルオープン時間の大幅な短縮機能を目的として、「簡易モード」によるファイルオープン機能が備わっています。 APIにより、この「簡易モード」状態でアセンブリファイルを開く方法も用意されており、事前にNameValueMapオブジェクトにて、” ExpressModeBehavior”名で、値を” OpenExpress”の情報を用意した後に、Documents.OpenWithOptionsメソッドを使用する事で、「簡易モード」状態でアセンブリファイルを開く事が可能です。 < 簡易モードによるアセンブリファイルオープン > Public Sub OpenWithExpressMode() Dim oAsmDoc As AssemblyDocument Dim oDocOpenOptions As NameValueMap Set oDocOpenOptions = _ ThisApplication.TransientObjects.CreateNameValueMap Call oDocOpenOptions.Add(“ExpressModeBehavior”, “OpenExpress”) Set oAsmDoc = ThisApplication.Documents.OpenWithOptions _ (“C:\Temp\Bracket\Bracket.iam”, oDocOpenOptions) End Sub <完全ロードモードによるアセンブリファイルオープン> Public Sub…
-
Inventor 2014 API 新機能 その2
前回、の「Inventor 2014 API 新機能 更新情報」に続き、Inventor 2014の新しいAPIについてご紹介させていただきます。 1. 2D/3Dスプライン及び2D/3D計算式曲線の作成 並びに3D交差曲線がAPIにより作成可能となります。 ‘ 2D/3Dスプライン及び2D/3D計算式曲線の作成 並びに3D交差曲線の作成。 Public Sub SketchCurves() ‘ 新規パーツファイルの作成 Dim partDoc As PartDocument Set partDoc = ThisApplication.Documents.Add(kPartDocumentObject, _ ThisApplication.FileManager.GetTemplateFile(kPartDocumentObject)) Dim partDef As PartComponentDefinition Set partDef = partDoc.ComponentDefinition ‘ X-Y平面を使って 2Dスケッチの作成 Dim sketch1 As PlanarSketch Set sketch1 = partDef.Sketches.Add(partDef.WorkPlanes.Item(3)) Dim tg As TransientGeometry Set tg = ThisApplication.TransientGeometry ‘…

You must be logged in to post a comment.