Creating Assembly Codes

Creating Assembly Codes

Anonymous
Not applicable
1,089 Views
4 Replies
Message 1 of 5

Creating Assembly Codes

Anonymous
Not applicable

Hi

 

Im working with Keynotes and Assembly Codes.

Basic stuff, just set the paths to the files i already have.

As i found no simple method to just set these paths i worked through the SDK samples.

ExternalResourceDBServer and ExternalResourceUIServer.

Its slightly more advanced than i was aiming for.

But theres gotta be some cool stuff you can make with it 😉

 

Anyway the resource server works fine and now i generate the Keynote file on the fly.

But how to generate an AssemblyCode File ?

The keynotes are done like this:
keyNotes.AddEntry(new KeynoteEntry("AJ1", "AJ", "Planlegging av eget kontraktarbeid"));

 

The KeynoteEntry method has max 3 parameters.

But an AssemblyCode file requires four parameters, being, Key - Parent Key - Text and Category.

Where Category is what makes it different.

 

Can KeynoteEntry create AssemblyCode files and if so how do we specify the category ?


This is what i would assume logically:

assemblyCodes.AddEntry(new KeynoteEntry("AJ1", "AJ", "Planlegging av eget kontraktarbeid", "-2000011"));

...but as mentioned "KeynoteEntry" only has 3 parameters.

 

Tnx

 

 

 

 

 

 

 

 

 

 

 

0 Likes
1,090 Views
4 Replies
Replies (4)
Message 2 of 5

jeremytammik
Autodesk
Autodesk

Dear Hd,

 

I cannot advise off-hand, so I forwarded your query to the development team.

 

I don't know whether it will bhelp, but have you looked at these notes from the tech summit presentation on external resources?

 

http://thebuildingcoder.typepad.com/blog/2014/07/referenced-files-as-a-service.html

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 5

Anonymous
Not applicable

Hi Jeremy

Yes i ran through those notes and the video.
Those mainly concern Keynotes not AssemblyCodes.
I ended up going hands-on with the SDK samples which worked great.

The documentation (or notes somewhere) stated that Assembly Codes should work in much the same way.
But could not figure out how to create such a file with the available overloads on KeynoteEntry.

As there is no "AssemblyCodeEntry" method I figured the intention is probably to use "KeynoteEntry" still.
Could be that the below code is how it's meant to be I will try that out.

assemblyCodes.AddEntry(new KeynoteEntry("AJ1", "AJ", "Some Text, -2000011"));
I doubt that will work though because the comma could potentially be in the "Text" itself.
So it doesn't seem like a logical API way of delimiting fields 🙂

Thanks for forwarding it.


Håvard Dagsvik
Senior Consultant, BIM Design

0 Likes
Message 4 of 5

jeremytammik
Autodesk
Autodesk

Dear Håvard,

 

I herard back from the development team. They say:

 

The class for Assembly Code entries is called ClassificationEntry. There is a related ClassificationEntries class that holds a collection of those objects. That class has the constructor they need. I am surprised to see it isn't named AssemblyCodeEntry myself. :/)

 

Please let us know how it works out for you and how you make use of it.

 

Thank you!

 

Merry Christmas and a Happy New Year!

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 5 of 5

Anonymous
Not applicable
Hi Jeremy

Thank you that should be exactly what i need.
Searched for a few other things but not classification.

Have a nice holiday break.

/HD
0 Likes