Author Topic: DevTV: Introductory recordings on Autodesk APIs  (Read 18241 times)

0 Members and 1 Guest are viewing this topic.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8702
  • AKA Daniel

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: DevTV: Introductory recordings on Autodesk APIs
« Reply #1 on: November 03, 2007, 08:48:41 PM »

ta !
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

jmaeding

  • Bull Frog
  • Posts: 304
  • I'm just here for the Shelties.
Re: DevTV: Introductory recordings on Autodesk APIs
« Reply #2 on: November 05, 2007, 02:00:31 PM »
wow, check out the one by Fenton.  I had no idea we could do all that, the can of worms is open now!
James Maeding

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: DevTV: Introductory recordings on Autodesk APIs
« Reply #3 on: November 05, 2007, 05:57:37 PM »
........  the can of worms is open now!
Sorry James ,you lost me ?
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

vegbruiser

  • Guest
Re: DevTV: Introductory recordings on Autodesk APIs
« Reply #4 on: November 06, 2007, 07:57:50 AM »
Hi there folks, I'm new here so I thought I'd my $0.02 to this post: -

EDIT: Me again  :-o

After further experimentation it would appear the "keywordoptions" I mentioned previously are very case-sensitive.  :oops:
« Last Edit: November 10, 2007, 05:40:03 AM by vegbruiser »

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8702
  • AKA Daniel
Re: DevTV: Introductory recordings on Autodesk APIs
« Reply #5 on: November 10, 2007, 08:58:28 AM »
Hi there folks, I'm new here so I thought I'd my $0.02 to this post: -

EDIT: Me again  :-o

After further experimentation it would appear the "keywordoptions" I mentioned previously are very case-sensitive.  :oops:

Welcome vegbruiser.   C# or VB ?

vegbruiser

  • Guest
Re: DevTV: Introductory recordings on Autodesk APIs
« Reply #6 on: November 10, 2007, 10:33:07 AM »
VB.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8702
  • AKA Daniel
Re: DevTV: Introductory recordings on Autodesk APIs
« Reply #7 on: November 10, 2007, 10:49:14 AM »
Glenn . We have another that’s needs converting, Do your stuff!  :police:

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: DevTV: Introductory recordings on Autodesk APIs
« Reply #8 on: November 13, 2007, 11:32:38 PM »
So much for "Conversion from Vb to C# is Simple .. " [*cough]
.. bloody mickeyMouse languages without curley braces twist my nickers something awefull ..
Converted with SharpDevelop 2.2


Warning   1   Missing XML comment for publicly visible type or member 'UserControl1'   ....\UserControl1.Designer.cs   2   15   DevTvIntro.Converted
Warning   2   Missing XML comment for publicly visible type or member 'UserControl1.Dispose(bool)'   ....\UserControl1.Designer.cs   7   26   DevTvIntro.Converted
Warning   3   Missing XML comment for publicly visible type or member 'adskClass'   ....\Class.cs   29   14   DevTvIntro.Converted
Error   4   The name 'Constants' does not exist in the current context   ....\Class.cs   40   24   DevTvIntro.Converted
Error   5   Cannot implicitly convert type 'Autodesk.AutoCAD.DatabaseServices.DBObject' to 'Autodesk.AutoCAD.DatabaseServices.BlockTableRecord'. An explicit conversion exists (are you missing a cast?)   ....\Class.cs   93   32   DevTvIntro.Converted
Error   6   Cannot convert method group 'StartTransaction' to non-delegate type 'Autodesk.AutoCAD.DatabaseServices.Transaction'. Did you intend to invoke the method?   ....\Class.cs   132   27   DevTvIntro.Converted
Error   7   Cannot implicitly convert type 'Autodesk.AutoCAD.DatabaseServices.DBObject' to 'Autodesk.AutoCAD.DatabaseServices.BlockTable'. An explicit conversion exists (are you missing a cast?)   ....\Class.cs   142   32   DevTvIntro.Converted
Error   8   Cannot implicitly convert type 'Autodesk.AutoCAD.DatabaseServices.DBObject' to 'Autodesk.AutoCAD.DatabaseServices.BlockTableRecord'. An explicit conversion exists (are you missing a cast?)   ....\Class.cs   185   36   DevTvIntro.Converted
Warning   9   Missing XML comment for publicly visible type or member 'adskClass.myPaletteSet'   ....\Class.cs   215   45   DevTvIntro.Converted
Warning   10   Missing XML comment for publicly visible type or member 'adskClass.myPalette'   ....\Class.cs   217   22   DevTvIntro.Converted
Error   11   The type or namespace name 'Guid' could not be found (are you missing a using directive or an assembly reference?)   ....\Class.cs   228   77   DevTvIntro.Converted
Error   12   The best overloaded method match for 'Autodesk.AutoCAD.Windows.PaletteSet.PaletteSet(string, System.Guid)' has some invalid arguments   ....\Class.cs   228   19   DevTvIntro.Converted
Error   13   Argument '2': cannot convert from 'Guid' to 'System.Guid'   ....\Class.cs   228   73   DevTvIntro.Converted
Error   14   The name 'Constants' does not exist in the current context   ....\Class.cs   251   20   DevTvIntro.Converted
Error   15   The type or namespace name 'Forms' could not be found (are you missing a using directive or an assembly reference?)   ....\Class.cs   282   13   DevTvIntro.Converted
Error   16   The type or namespace name 'Forms' could not be found (are you missing a using directive or an assembly reference?)   ....\Class.cs   304   3   DevTvIntro.Converted
Error   17   The type or namespace name 'Forms' could not be found (are you missing a using directive or an assembly reference?)   ....\Class.cs   314   12   DevTvIntro.Converted
Error   18   Cannot convert method group 'StartTransaction' to non-delegate type 'Autodesk.AutoCAD.DatabaseServices.Transaction'. Did you intend to invoke the method?   ....\Class.cs   337   24   DevTvIntro.Converted
Error   19   Cannot implicitly convert type 'Autodesk.AutoCAD.DatabaseServices.DBObject' to 'Autodesk.AutoCAD.DatabaseServices.Entity'. An explicit conversion exists (are you missing a cast?)   ....\Class.cs   341   18   DevTvIntro.Converted
Error   20   Cannot implicitly convert type 'Autodesk.AutoCAD.DatabaseServices.DBObject' to 'Autodesk.AutoCAD.DatabaseServices.DBDictionary'. An explicit conversion exists (are you missing a cast?)   ....\Class.cs   353   34   DevTvIntro.Converted
Error   21   The name 'ControlChars' does not exist in the current context   ....\Class.cs   362   22   DevTvIntro.Converted
Error   22   Cannot implicitly convert type 'Autodesk.AutoCAD.DatabaseServices.DBObject' to 'Autodesk.AutoCAD.DatabaseServices.Xrecord'. An explicit conversion exists (are you missing a cast?)   ....\Class.cs   366   18   DevTvIntro.Converted
Error   23   The name 'ControlChars' does not exist in the current context   ....\Class.cs   369   23   DevTvIntro.Converted
Error   24   The best overloaded method match for 'Autodesk.AutoCAD.DatabaseServices.TypedValue.TypedValue(int, object)' has some invalid arguments   ....\Class.cs   380   43   DevTvIntro.Converted
Error   25   Argument '1': cannot convert from 'Autodesk.AutoCAD.DatabaseServices.DxfCode' to 'int'   ....\Class.cs   380   58   DevTvIntro.Converted
Error   26   The best overloaded method match for 'Autodesk.AutoCAD.DatabaseServices.TypedValue.TypedValue(int, object)' has some invalid arguments   ....\Class.cs   380   77   DevTvIntro.Converted
Error   27   Argument '1': cannot convert from 'Autodesk.AutoCAD.DatabaseServices.DxfCode' to 'int'   ....\Class.cs   380   92   DevTvIntro.Converted
Error   28   The best overloaded method match for 'Autodesk.AutoCAD.DatabaseServices.TypedValue.TypedValue(int, object)' has some invalid arguments   ....\Class.cs   380   122   DevTvIntro.Converted
Error   29   Argument '1': cannot convert from 'Autodesk.AutoCAD.DatabaseServices.DxfCode' to 'int'   ....\Class.cs   380   137   DevTvIntro.Converted
Error   30   The best overloaded method match for 'Autodesk.AutoCAD.DatabaseServices.TypedValue.TypedValue(int, object)' has some invalid arguments   ....\Class.cs   380   158   DevTvIntro.Converted
Error   31   Argument '1': cannot convert from 'Autodesk.AutoCAD.DatabaseServices.DxfCode' to 'int'   ....\Class.cs   380   173   DevTvIntro.Converted
Error   32   The best overloaded method match for 'Autodesk.AutoCAD.DatabaseServices.TypedValue.TypedValue(int, object)' has some invalid arguments   ....\Class.cs   380   195   DevTvIntro.Converted
Error   33   Argument '1': cannot convert from 'Autodesk.AutoCAD.DatabaseServices.DxfCode' to 'int'   ....\Class.cs   380   210   DevTvIntro.Converted
Error   34   The type or namespace name 'Forms' could not be found (are you missing a using directive or an assembly reference?)   ....\Class.cs   394   16   DevTvIntro.Converted
Error   35   The type or namespace name 'Forms' could not be found (are you missing a using directive or an assembly reference?)   ....\Class.cs   399   9   DevTvIntro.Converted
Error   36   Cannot convert method group 'StartTransaction' to non-delegate type 'Autodesk.AutoCAD.DatabaseServices.Transaction'. Did you intend to invoke the method?   ....\Class.cs   437   23   DevTvIntro.Converted
Error   37   Cannot implicitly convert type 'Autodesk.AutoCAD.DatabaseServices.DBObject' to 'Autodesk.AutoCAD.DatabaseServices.DBDictionary'. An explicit conversion exists (are you missing a cast?)   ....\Class.cs   441   23   DevTvIntro.Converted
Error   38   The name 'ControlChars' does not exist in the current context   ....\Class.cs   450   21   DevTvIntro.Converted
Error   39   Cannot implicitly convert type 'Autodesk.AutoCAD.DatabaseServices.DBObject' to 'Autodesk.AutoCAD.DatabaseServices.Xrecord'. An explicit conversion exists (are you missing a cast?)   ....\Class.cs   454   17   DevTvIntro.Converted
Error   40   The name 'ControlChars' does not exist in the current context   ....\Class.cs   457   22   DevTvIntro.Converted
Error   41   The best overloaded method match for 'Autodesk.AutoCAD.DatabaseServices.TypedValue.TypedValue(int, object)' has some invalid arguments   ....\Class.cs   468   42   DevTvIntro.Converted
Error   42   Argument '1': cannot convert from 'Autodesk.AutoCAD.DatabaseServices.DxfCode' to 'int'   ....\Class.cs   468   57   DevTvIntro.Converted
Error   43   The best overloaded method match for 'Autodesk.AutoCAD.DatabaseServices.TypedValue.TypedValue(int, object)' has some invalid arguments   ....\Class.cs   468   76   DevTvIntro.Converted
Error   44   Argument '1': cannot convert from 'Autodesk.AutoCAD.DatabaseServices.DxfCode' to 'int'   ....\Class.cs   468   91   DevTvIntro.Converted
Error   45   The best overloaded method match for 'Autodesk.AutoCAD.DatabaseServices.TypedValue.TypedValue(int, object)' has some invalid arguments   ....\Class.cs   468   134   DevTvIntro.Converted
Error   46   Argument '1': cannot convert from 'Autodesk.AutoCAD.DatabaseServices.DxfCode' to 'int'   ....\Class.cs   468   149   DevTvIntro.Converted
Error   47   The best overloaded method match for 'Autodesk.AutoCAD.DatabaseServices.TypedValue.TypedValue(int, object)' has some invalid arguments   ....\Class.cs   468   170   DevTvIntro.Converted
Error   48   Argument '1': cannot convert from 'Autodesk.AutoCAD.DatabaseServices.DxfCode' to 'int'   ....\Class.cs   468   185   DevTvIntro.Converted
Error   49   The best overloaded method match for 'Autodesk.AutoCAD.DatabaseServices.TypedValue.TypedValue(int, object)' has some invalid arguments   ....\Class.cs   468   207   DevTvIntro.Converted
Error   50   Argument '1': cannot convert from 'Autodesk.AutoCAD.DatabaseServices.DxfCode' to 'int'   ....\Class.cs   468   222   DevTvIntro.Converted
Error   51   Cannot implicitly convert type 'int' to 'bool'   ....\Class.cs   511   8   DevTvIntro.Converted
Error   52   Cannot convert method group 'StartTransaction' to non-delegate type 'Autodesk.AutoCAD.DatabaseServices.Transaction'. Did you intend to invoke the method?   ....\Class.cs   515   24   DevTvIntro.Converted
Error   53   'fullEntPath' is a 'variable' but is used like a 'method'   ....\Class.cs   519   34   DevTvIntro.Converted
Error   54   The name 'Drawing' does not exist in the current context   ....\Class.cs   524   90   DevTvIntro.Converted
Error   55   The name 'Drawing' does not exist in the current context   ....\Class.cs   525   87   DevTvIntro.Converted
Error   56   The type or namespace name 'Forms' could not be found (are you missing a using directive or an assembly reference?)   ....\Class.cs   530   14   DevTvIntro.Converted
Error   57   Cannot implicitly convert type 'Autodesk.AutoCAD.EditorInput.PointHistoryBits' to 'bool'   ....\Class.cs   570   8   DevTvIntro.Converted
Error   58   Cannot implicitly convert type 'int' to 'bool'   ....\Class.cs   630   8   DevTvIntro.Converted
Error   59   Cannot convert method group 'StartTransaction' to non-delegate type 'Autodesk.AutoCAD.DatabaseServices.Transaction'. Did you intend to invoke the method?   ....\Class.cs   634   24   DevTvIntro.Converted
Error   60   'fullEntPath' is a 'variable' but is used like a 'method'   ....\Class.cs   638   33   DevTvIntro.Converted
Error   61   Cannot implicitly convert type 'Autodesk.AutoCAD.DatabaseServices.DBObject' to 'Autodesk.AutoCAD.DatabaseServices.DBDictionary'. An explicit conversion exists (are you missing a cast?)   ....\Class.cs   645   35   DevTvIntro.Converted
Error   62   Cannot implicitly convert type 'Autodesk.AutoCAD.DatabaseServices.DBObject' to 'Autodesk.AutoCAD.DatabaseServices.Xrecord'. An explicit conversion exists (are you missing a cast?)   ....\Class.cs   654   18   DevTvIntro.Converted
Error   63   Operator '==' cannot be applied to operands of type 'short' and 'Autodesk.AutoCAD.DatabaseServices.DxfCode'   ....\Class.cs   658   12   DevTvIntro.Converted
Error   64   The best overloaded method match for 'Autodesk.AutoCAD.DatabaseServices.Curve.GetPointAtDist(double)' has some invalid arguments   ....\Class.cs   663   22   DevTvIntro.Converted
Error   65   Argument '1': cannot convert from 'object' to 'double'   ....\Class.cs   663   41   DevTvIntro.Converted
Error   66   Cannot convert method group 'StartTransaction' to non-delegate type 'Autodesk.AutoCAD.DatabaseServices.Transaction'. Did you intend to invoke the method?   ....\Class.cs   852   23   DevTvIntro.Converted
Error   67   Cannot implicitly convert type 'Autodesk.AutoCAD.DatabaseServices.DBObject' to 'Autodesk.AutoCAD.DatabaseServices.BlockTableRecord'. An explicit conversion exists (are you missing a cast?)   ....\Class.cs   856   36   DevTvIntro.Converted
Warning   68   Missing XML comment for publicly visible type or member 'adskClass.MyCircleJig'   ....\Class.cs   705   15   DevTvIntro.Converted
Error   69   A local variable named 'jigPromptResult' is already defined in this scope   ....\Class.cs   768   25   DevTvIntro.Converted
Error   70   Cannot implicitly convert type 'Autodesk.AutoCAD.EditorInput.PromptDoubleResult' to 'Autodesk.AutoCAD.EditorInput.PromptPointResult'   ....\Class.cs   768   43   DevTvIntro.Converted
Error   71   Cannot implicitly convert type 'Autodesk.AutoCAD.Geometry.Point3d' to 'double'   ....\Class.cs   774   16   DevTvIntro.Converted
Error   72   'adskClass.MyCircleJig.Update()': not all code paths return a value   ....\Class.cs   799   27   DevTvIntro.Converted
Warning   73   Missing XML comment for publicly visible type or member 'adskClass.MyCircleJig.CurrentInput'   ....\Class.cs   714   14   DevTvIntro.Converted
Warning   74   '42016' is not a valid warning number   DevTvIntro.Converted
« Last Edit: November 15, 2007, 07:08:41 AM by Kerry Brown »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: DevTV: Introductory recordings on Autodesk APIs
« Reply #9 on: November 13, 2007, 11:40:36 PM »
So much for "Conversion from Vb to C# is Simple .. " [*cough]
.. bloody mickeyMouse languages without curley braces twist my nickers something awefull ..

Poorly written converter or original source code? Or both? Personally I enjoy the idiosyncrasies of many languages, even the, errrm basic derivatives.

Edit: That does look awful tho.
« Last Edit: November 13, 2007, 11:41:55 PM by MP »
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com • http://cadanalyst.slack.com • http://linkedin.com/in/cadanalyst

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: DevTV: Introductory recordings on Autodesk APIs
« Reply #10 on: November 14, 2007, 01:22:14 AM »

I'm going back and starting over ..
Make sure the build in VB builds,netloads,works ..
.. then convert.

I've had this discussion previously and AutoDesk are quite happy to have everyone do their own conversions.
If you've tried to convert come of the SDK samples you'll know that some of the VB code does not convert.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: DevTV: Introductory recordings on Autodesk APIs
« Reply #11 on: November 14, 2007, 08:51:47 PM »
I've tried again, and the errors/warnings continue.

I have no expectation that they would produce a recording for C#, but I'm astounded that AutoDesk have not provided a buildable C# solution.

Some of us don't have the time or inclination to learn the idiosyncracies of VB to the level required to make the translation.

This was s'posed to be a tutor, and ignoring half their potential audience doesn't seem to be aligned with their ascribed goal.

 I've posted my thoughts on the blog, but doubt that a single voice will provide much incentive for remedial action on their part

... but Ive been wrong before :-)

added: The Revit Samples DO have both VB and CS code included ....
« Last Edit: November 14, 2007, 08:55:56 PM by Kerry Brown »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: DevTV: Introductory recordings on Autodesk APIs
« Reply #12 on: November 14, 2007, 09:05:44 PM »
I share with you the surprise and disappointment the powers that be failed to recognize the value and importance of providing all sample solutions in professionally written C#.

Edit: As shown. If you think about it they've never supplied professional level code / solutions. Not for LISP, not for VB, not for C#.
« Last Edit: November 14, 2007, 09:10:47 PM by MP »
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com • http://cadanalyst.slack.com • http://linkedin.com/in/cadanalyst

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: DevTV: Introductory recordings on Autodesk APIs
« Reply #13 on: November 14, 2007, 09:29:50 PM »

'never' is a big word .. but I'm disinclined to find a more suitable one ..
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

TR

  • Guest
Re: DevTV: Introductory recordings on Autodesk APIs
« Reply #14 on: November 14, 2007, 11:36:44 PM »
So you really can't look at VB.NET code and figure out how it should be done in C#?