Introduction to CATIA CAA programming [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I need to start working in CATIA CAA and I am looking for an online introductory course. From a previous post, there doesn't seem to be much available .
All I found is the quite messy documentation which I started digging from:
CATIA_INSTALLATION_DIR/CAADoc/Doc/online/CAADocUseCases/CAADocRunSample.htm
Any hint?

Unfortunately, like many proprietary APIs, it only comes with the software editor examples and documentation and lacks online community to help you getting started...
For CAA, we call the API documentation the Encyclopaedia. The entry point (for V5-6) is rather CATIA_INSTALLATION_DIR/CAADoc/Doc/online/CAACenV5Default.htm
Now there are many aspects you can work using CAA, almost all of them : from data model customization (Object Specs Modeler also called "Features") to visualization through all aspects of geometry and topology. Main CATIA workbenches provide their own layer of APIs (Part Design, Assembly, etc.)
Now to get ready, you will need a Visual Studio (2008 for example if you are working between R20 and R24) on top of which you will install the ENOVIA STUDIO which is basically a set of addins within visual, that will allow you to create, check, test and compile source and resources.
If after install you do not have anything popin up at VS launch, quit it and go to ENOVIA_STUDIO_INSTALLATION_DIR/intel_a/code/bin and launch CATVBTSetup.
You should have a checkbox with visual studio 2008 (if that's the version you need.) Check it and click Install. It should register the right stuff and pop up a blue CAA tips dialog box at next VS launch.
Once there, take a look within CATIA_INSTALLATION_DIR/CAADoc : all the directories ending with .edu are working code frameworks (a framework is the highest container for a group of functionnaly related objects in CAA) covering all examples for the encyclopaedia. You will find a lot more actually, since a good chunk of code often talks a lot more than a tutorial or technical article.
To try out this code (and your ENOVIA STUDIO installation by the way), you can create a directory MYWORKSPACE where you can put the frameworks that interest you (all of them if you want :D )
Now go to VS, File->Open CAA Workspace. Browse to your MYWORKSPACE directory. Pick up a "level" (matching the CATIA release you are working with) and click OK. ENOVIA STUDIO Addin (ES) will create the VS metadata so that you get all Frameworks and modules (framework's code sub-components) as projects within the solution explorer on the left.
Now go to CAAV5 Workspace-->Locate Prerequisite Workspaces and Add the CATIA_INSTALLATION_DIR (where you should have both CATIA and CAA API installed)
Now do Build-->mkmk. check update and debug. Add -jobs 4 in Other Options (so that the build gets faster)
Last but not least, update the runtime view (meaning that ES will copy the resources of each framework in your workspace in the intel_a/win_b64 of you workspace which will be read by CATIA at runtime to find icons, interface implementation binding, etc.)
You can execute CATIA now (if you want to go interactive) by Ctrl+F5. If it does not start, go to the project in bold characters in the Solution Explorer on the left. Right click. Properties. In the tree select Debug and in the Command field navigate to MYWORKSPACE\intel_a (or win_b64)\code\bin\cnext.exe.
Last but not least, ask your questions here, it is way time that CAA community benefits from SO power :)

Related

How an I get example about CATIA CAA C++ Framework? [duplicate]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I need to start working in CATIA CAA and I am looking for an online introductory course. From a previous post, there doesn't seem to be much available .
All I found is the quite messy documentation which I started digging from:
CATIA_INSTALLATION_DIR/CAADoc/Doc/online/CAADocUseCases/CAADocRunSample.htm
Any hint?
Unfortunately, like many proprietary APIs, it only comes with the software editor examples and documentation and lacks online community to help you getting started...
For CAA, we call the API documentation the Encyclopaedia. The entry point (for V5-6) is rather CATIA_INSTALLATION_DIR/CAADoc/Doc/online/CAACenV5Default.htm
Now there are many aspects you can work using CAA, almost all of them : from data model customization (Object Specs Modeler also called "Features") to visualization through all aspects of geometry and topology. Main CATIA workbenches provide their own layer of APIs (Part Design, Assembly, etc.)
Now to get ready, you will need a Visual Studio (2008 for example if you are working between R20 and R24) on top of which you will install the ENOVIA STUDIO which is basically a set of addins within visual, that will allow you to create, check, test and compile source and resources.
If after install you do not have anything popin up at VS launch, quit it and go to ENOVIA_STUDIO_INSTALLATION_DIR/intel_a/code/bin and launch CATVBTSetup.
You should have a checkbox with visual studio 2008 (if that's the version you need.) Check it and click Install. It should register the right stuff and pop up a blue CAA tips dialog box at next VS launch.
Once there, take a look within CATIA_INSTALLATION_DIR/CAADoc : all the directories ending with .edu are working code frameworks (a framework is the highest container for a group of functionnaly related objects in CAA) covering all examples for the encyclopaedia. You will find a lot more actually, since a good chunk of code often talks a lot more than a tutorial or technical article.
To try out this code (and your ENOVIA STUDIO installation by the way), you can create a directory MYWORKSPACE where you can put the frameworks that interest you (all of them if you want :D )
Now go to VS, File->Open CAA Workspace. Browse to your MYWORKSPACE directory. Pick up a "level" (matching the CATIA release you are working with) and click OK. ENOVIA STUDIO Addin (ES) will create the VS metadata so that you get all Frameworks and modules (framework's code sub-components) as projects within the solution explorer on the left.
Now go to CAAV5 Workspace-->Locate Prerequisite Workspaces and Add the CATIA_INSTALLATION_DIR (where you should have both CATIA and CAA API installed)
Now do Build-->mkmk. check update and debug. Add -jobs 4 in Other Options (so that the build gets faster)
Last but not least, update the runtime view (meaning that ES will copy the resources of each framework in your workspace in the intel_a/win_b64 of you workspace which will be read by CATIA at runtime to find icons, interface implementation binding, etc.)
You can execute CATIA now (if you want to go interactive) by Ctrl+F5. If it does not start, go to the project in bold characters in the Solution Explorer on the left. Right click. Properties. In the tree select Debug and in the Command field navigate to MYWORKSPACE\intel_a (or win_b64)\code\bin\cnext.exe.
Last but not least, ask your questions here, it is way time that CAA community benefits from SO power :)

Funding for MathML rendering library [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have an unfinished MathML rendering library written in C++. I ceased development a few months ago due to lack of time. The library [still] uses the TrueType version (unsupported) of the STIX fonts beta [version 1.0 of the STIX fonts (OpenType Postscript format) has since been released].
Development of this kind of library is a HUGE undertaking and, in fact, requires a number of programmers/developers. In my case, I am doing it alone, and here's my question:
Does anyone of you know of any foundations/philanthropists who may be interested to fund my project in return for open sourcing the code?
The funding will serve as an incentive for me to finish the library - perhaps by taking a sabbatical :p - and, of course, as 'payment' for the intellectual property involved.
I've searched the web, contacted some [e.g., foundations, VCs, angels, etc.], but I either did not get a response (from VCs and angels) or was rejected (one reason is geography since these foundations support only US-based projects).
As an aside, when I search the web for MathML, the results are often outdated. I guess there's not much activity concerning MathML. Yet, I believe this library will be very useful not only to developers but also to anyone who uses math, especially students and teachers. It is useful for e-learning, can be used with desktop apps and web servers (Windows), makes it easy to insert images of formulas in PowerPoint documents, etc.
Any suggestions are most welcome. Thank you.
EDITS: I have finished this library finally without funding, although I don't rule out seeking one.
You can find my new site below with lots of sample formulas; click on the download link to download the SDK.
http://reformath.webnode.com/ (preferred for statistical reason)
http://reformath.weebly.com/ (please use the above link instead)
DON'T forget to provide some feedback - or donations. Thanks!!!!!
Since we've already got open source MathML (Firefox has had it for years) that mean you'd have to do something better than the existing OSS solutions. And at that point, why not work on an existing open source project?
So that leaves commercial apps that may want a closed library for MathML rendering. I would go after companies like the makers of MathCad, Matlab, or any other engineering software that may want to display equations neatly. You should have something that already works for some subset of the things you/they will want it to do. You should also turn yourself into a company before going to those places so they take you seriously and you can license it to multiple customers. Otherwise the most you're likely to get is a job offer where they'd like you to hand over what you've got (for free if they can get you to) and then work on it as an employee - which may be all you want if you love it and hate your day job ;-)
You should probably ask on www-math list, also if you ask there, we can list your application in the software implementations page
http://www.w3.org/Math/Software/

Export HTML to PDF (C++, Windows) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 11 months ago.
Improve this question
I am looking for a redistributable component to convert HTML to PDF.
I would - at the moment - like to avoid using a "PDF printer", as this requires a printer installation and some user "playing around" in the printers panel might break that feature.
The HTML is available in a Browser control or as external file. The HTML is normally fairly simple, but customers can create their own templates, so a "good range" of HTML should be supported.
Should be accessible for an automated process from C++ - DLL / COM / external executable with command line support are all fine.
Commercial is fine, but in the thousands is not an option right now.
So, which components do you know or can you recommend?
PDFCreator can function as a virtual printer but it's also usable via COM. The default setup even includes COM examples.
You can check the COM samples in the SourceForge SVN repository right here: http://pdfcreator.svn.sourceforge.net/viewvc/pdfcreator/trunk/COM/
If you have Microsoft Word installed, I guess you could automate the whole process using the "save as pdf" plugin that can be downloaded from the Microsoft Office Site.
You would automate word then open the HTML document inside word, then output as PDF. Might be worth a shot, if you're developing in a Microsoft Environment.
You might want to have a look at PDFReactor

Where can I get Toad syntax coloring schemes? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am a big fan of the light colors on a dark background color scheme for programming - which is unfortunately not what Quest's Toad comes with by default.
I notice that it is possible to export and import settings under the language management window, and I know that Toad has a large level of community involvement. So I assume there must be some location where people are posting their custom coloring schemes. However, in part because I don't know what the Toad guys call them (skins? colorization? themes?) and in part because its so hard to Google Toad +skins I cannot for the life of me find them.
Does anyone know if there is such a place so I don't have to set the colors by hand?
UPDATED ENTIRELY:
What's the official name?
The file extension (.dvtcolortheme) suggests "Color Theme" or "DWT Color Theme" are the official names. Most users on Toad forums seem to use the same terminology.
Where are they shared?
There does not seem to be a dedicated site for sharing color themes. However, there were a couple forums on ToadWorld, and ToadForOracle where folks were talking about swapping these color theme files. I would suggest hopping on the forum and asking if others have files to share or know of any repository sites.
Available Color Themes
* Nocturnal theme on GitHub: https://github.com/grng/Nocturnal-Toad-Color-Scheme
* A nice dark-background theme: http://toadfororacle.com/thread.jspa?messageID=93203
Rolling-your-own
I know you did not want to create your own, but it looks a lot easier than either of us expected. The .dwtcolortheme settings file is just XML.
I suggest visiting http://studiostyl.es/ - as it's a large repository of Visual Studio themes. Find a thumbnail you like, take a screen shot, and use a color picker to capture the values. Plop them in your XML settings file and you are ready to go.
Go to View -> Toad Options. Click Editor -> Behavior. There is a button called Syntax Highlighting. On the Highlighting Tab (opens by default) is a list of styles, clicking on the style will show the options selected for that style...
For example in my setup (which is my install default), Reserved Words are blue, Comments green, Strings Red, etc.
Scroll through and you'll see the options, and you can change as necessary for your needs.
The right file for new versions of TOAD is EditorLexers.xml.
For version 12.9 is here
C:\Users\%username%\AppData\Roaming\Dell\Toad for Oracle\12.9\User Files
instead for version 12.11 is here
C:\Users\%username%\AppData\Roaming\Quest Software\Toad for Oracle\12.11\User Files
Here you can download my dark theme
Enjoy!
Update: it works also in version 13.0.
I have created a schema similar to Visual Studio 2017 dark theme
You can download it from: EditorLexers.xml
You need to replace the file located at:
C:\Users\[YOUR_USER]\AppData\Roaming\Quest Software\Toad for Oracle\13.1\User Files

C/C++ source code visualization? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Basically I want tools which generate source code visualization like:
function call graph
dependency graph
...
Doxygen is really excellent for this, although you will need to install GraphViz to get the the graphs to draw.
Once you've got everything installed, it's really rather simple to draw the graphs. Make sure you set EXTRACT_ALL and CALL_GRAPH to true and you should be good to go.
The full documentation on this function for doxygen is here.
I strongly recommend BOUML. It's a free UML modelling application, which:
is extremely fast (fastest UML tool ever created, check out benchmarks),
has rock solid C++ import support,
has great SVG export support, which is important, because viewing large graphs in vector format, which scales fast in e.g. Firefox, is very convenient (you can quickly switch between "birds eye" view and class detail view),
is full featured, impressively intensively developed (look at development history, it's hard to believe that so fast progress is possible).
So: import your code into BOUML and view it there, or export to SVG and view it in Firefox.
For the free version:
source is on Github as DoUML
Installers can be downloaded from http://www.bouml.fr/download.html
You can look at different tools for software design and modelling (Rational Rose, Sparx Enterprise Architect, Umbrello, etc). Majority of them have some functionality to reverse modeling by source code, and getting UML class diagrams, and sometimes even sequence diagrams (and this is very close to functions call graph).
But after you get some pictures on really big project code base you could realise that such graphs are rather hard to read and understand. Unfortunally visualization capabilities of complexity are very limited.
As for me, using a "divide and rule" idiom is more convinient approach. You can extract different functionality blocks or layers from your some code base (just sorting cpp-files by different folders sometimes enough). Another way is to use some scripts (bash, python) to create simple csv tables with interested parameters of files, classes or functions like "number of dependencies" etc).
If you use Visual Studio, the 2010 Ultimate release lets you generate sequence diagrams and dependency graphs. However, the release currently supports only .NET application projects.
The team has gotten lots of interest in supporting C++ in a future release, so you might want stay tuned. In the meantime, you can post in the VS 2010 Architectural Discovery & Modeling Tools forum at http://social.msdn.microsoft.com/Forums/en-US/vsarch/threads to request an update. I know the product team loves hearing customer feedback about the tools.
In the meantime, you can learn more about creating sequence diagrams and dependency diagrams from .NET code in the following topics:
How to: Find Code Using Architecture Explorer: http://msdn.microsoft.com/en-us/library/dd409431%28VS.100%29.aspx
How to: Generate Graph Documents from Code: http://msdn.microsoft.com/en-us/library/dd409453%28VS.100%29.aspx#SeeSpecificSource
How to: Explore Code with Sequence Diagrams: http://msdn.microsoft.com/en-us/library/ee317485%28VS.100%29.aspx
To try the RC release and provide feedback, download it at http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=457bab91-5eb2-4b36-b0f4-d6f34683c62a
Try doxygen
Example output from Xerces
In addition to written tools above, you may try understand. But, it is not free.
Might be a duplication, but check out ollydbg, IDA Pro and this website has a whole bunch of resources with some very sexy images.