Edit
Attach
Printable
topic end
<!-- * Set TOPICTITLE = <nop>CoCreate Modeling code examples --> <style type="text/css"> pre { background-color:#FFEECC; } </style> ---++!! <nop>CoCreate Modeling code examples <table border="0"> <tr> <td width="50%"> </td> <td><i> [[http://www.amatecon.com/fish.html][Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime.]] </i></td> </tr> </table> This section presents simple code examples which are (hopefully) useful in real life. Their main purpose, however, is to demonstrate and explain certain programming techniques. #AlarmClock #DirectoryBrowser #TerminateEvent #SymbolFunction #DeleteMatchingParts #EnumerateDrives #GetSelection #ModelClipping %STARTINCLUDE% * [[MacroStructureBrowser][Color highlighting in the structure browser]]: Extend the structure browser with interrogators * [[MacroAlarmClock][Alarm clock: Beep whenever a long-running command terminates]]: How to hook into events and run an external command to play arbitrary sounds * [[MacroModelClipping][Controlling model clipping planes]]: From a recorded command sequence to properly packaged Lisp code * [[MacroGetSelection][Using <tt>get_selection</tt>]] * [[MacroTerminateEvent][Automatically saving the model when <nop>CoCreate Modeling terminates]] * [[MacroSymbolFunction][Using <tt>symbol-function</tt>]]: How to hook into function calls - for advanced Lisp programmers * [[MacroDeleteMatchingParts][Delete all parts matching a pattern]]: Scan assemblies and delete all parts matching a specified pattern * [[MacroSwapColor][Swap part colors]]: Change the color for any part which has a user-specified color * [[MacroListModifiedParts][List modified parts]] in a selection * [[MacroDirectoryBrowser][Simple directory browser]]: Bare-bones example of how to build your own graphical browser in <nop>CoCreate Modeling * [[MacroEnumerateDrives][Enumerating all drives on a Windows system]]: Integrating Lisp and external commands (in this case, <nop>VBscript code) without exchanging data through temporary files * [[MacroDefaultPrinter][Inquiring the Windows default printer]] (or all Windows printers): Two ways to solve the problem - an integration of Lisp and OSDD macro code, and a polyglot amalgam of Lisp and <nop>VBscript * [[MacroSecurePart][Secure a part from sectioning in Annotation views]]: How to develop a simple dialog based on =sd-defdialog= * [[MacroListDirectory][A platform-independent ls -l replacement]] * [[MacroPartsInAnnotationViews][List parts in Annotation views]]: Traverses viewsets and views in Annotation and lists the contents of view component lists * [[MacroDrawSine][Draw sine curves and archimedean spirals]]: How to build a spline command which draws curves on a workplane * [[MacroHelloExcel][Hello, Excel!]]: How to send assembly data to Excel using DDE * [[MacroSubsetSum][Solving the subset sum problem]]: A backtracking algorithm in Lisp, VBA and <nop>CoCreate Drafting macro language * [[TextFromAndToClipboard][Exchanging text via the Windows clipboard]] (using .NET API functionality) %STOPINCLUDE% PS: The term "macro" sometimes shows up in URLs referring to the examples above, or when explaining Lisp code. This is mostly for historical reasons. See [[Blog.DefinePrivatePublic20070501][this blog entry]] for an explanation why "macro" is usually the wrong name, at least for code written for <nop>CoCreate Modeling. --- %COMMENT{type="below" nonotify="on"}%
to top
End of topic
Skip to action links
|
Back to top
Edit
|
Attach image or document
|
Printable version
|
Raw text
|
Refresh
|
More topic actions
Revisions: | r1.49 |
>
|
r1.48
|
>
|
r1.47
|
Total page history
|
Backlinks
You are here:
CoCreateModeling
>
OsdmMacros
r1.49 - 25 May 2016 - 12:31 -
ClausBrod
to top
CoCreateModeling
CoCreate Modeling
FAQ
Introduction
Hardware
Operating system
Memory management
File handling
Installation
Licensing
Graphics
App. knowhow
Lisp
Learning
Programming
Debugging
DDE
Compiler
Customization
Troubleshooting
Links
Code examples
Viewbench
News
Changes
Index
Search
Impressum
Home
Webs
Atari
Blog
Claus
CoCreateModeling
Klassentreffen
Main
Sandbox
Sommelier
TWiki
Xplm
My links
edit
TWiki
Welcome
TWiki Web TWiki Web Home Changes Topics Index Search
TWiki Webs Atari Blog Main
OneSpaceModeling
?
Sandbox TWiki TWiki Webs Atari Blog Main
OneSpaceModeling
?
Sandbox TWiki
Jump:
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback