CoCreate User Forum  

Go Back   CoCreate User Forum > Search Forums

Showing results 1 to 25 of 500
Search took 0.17 seconds.
Search: Posts Made By: clausb
Forum: Customization 03-19-2016, 11:06 AM
Replies: 0
Views: 4,273
Posted By clausb
New blog post & tool: "Poor man's profiling in Lisp"

All,

inspired by a discussion in a German user forum, I came up with a few lines of code to help with Lisp performance profiling. It sure felt good to have a go at Common Lisp again ;-) (Although...
Forum: CoCreate Drafting 02-16-2016, 06:07 AM
Replies: 1
Views: 4,825
Posted By clausb
Re: Encoding problem with Swedish characters?

As you already observed, Unicode support was added in more recent versions, which allows to use pretty much any character. Memory is hazy on this, but I think we added Unicode support for v15.
...
Forum: Annotation 02-07-2016, 11:29 PM
Replies: 4
Views: 7,497
Posted By clausb
Re: Macro for ISO Tol and V18

In recent versions of Creo Elements/Direct Modeling, when you enter AM_DIM_ADD_FIXTEXT after activating Annotation, you get "AM_DIM_ADD_FIXTEST is unbound". Entering AM_DIM_PROPS, however, works as...
Forum: Annotation 01-29-2016, 03:25 AM
Replies: 4
Views: 7,497
Posted By clausb
Re: Macro for ISO Tol and V18

Just run the recorder while you execute the command to learn about the parameters ;-) (See http://www.clausbrod.de/CoCreateModeling/MacroModelClipping for some hints.)

Also, the discussion at...
Forum: Customization 11-03-2015, 11:21 AM
Replies: 1
Views: 4,718
Posted By clausb
Blog article: Changing the current directory during startup

New blog entry, inspired by a question posted in a German customer forum:

Changing the current directory during startup...
Forum: Customization 08-16-2015, 04:58 AM
Replies: 8
Views: 8,795
Posted By clausb
Re: visual studio and modeling

What you are describing can indeed be accomplished using the COM/.NET API for Creo Elements/Direct Modeling. I feel a blog article coming up... ;-)
Forum: Customization 07-29-2015, 12:45 PM
Replies: 8
Views: 8,795
Posted By clausb
Re: visual studio and modeling

Sounds like an interesting project... what kind of integration are you looking for here?

Creo Elements/Direct Modeling provides full interop with COM (from Lisp), which may be exactly what you...
Forum: Customization 09-04-2014, 01:02 PM
Replies: 5
Views: 6,333
Posted By clausb
Re: Lisp - select all unique models in session??

Untested sketch of how to insert a part/assy object into a hash table which uses the contents ID as the key:

(setf (gethash (sd-inq-obj-contents-sysid object) hash-table) object)
Forum: Customization 09-04-2014, 12:26 PM
Replies: 5
Views: 6,333
Posted By clausb
Re: Lisp - select all unique models in session??

Rough idea: Walk the tree and insert part/assemblies into a hash table, using their contents data as the key. The resulting hash table would then contain only unique parts/assemblies.
Forum: Customization 08-30-2014, 07:25 AM
Replies: 3
Views: 5,131
Posted By clausb
Re: does SD-SUBSCRIBE-EVENT receive arguments??

Try an event handler like this:

(defun eventhandler (&rest args) (print args))

and see if any of the args are useful. (My guess, though, is that you probably tried that already...)

Good...
Forum: CoCreate Modeling 08-12-2014, 11:37 PM
Replies: 8
Views: 6,235
Posted By clausb
Re: Problem in Modeling

My memory is rusty, but the error message makes me think you were trying to load files from a PDM system, rather than from the file system. Can you confirm?
Forum: System Administration 07-29-2013, 07:41 AM
Replies: 4
Views: 11,295
Posted By clausb
Re: License Server - Client Error: broken

Just guessing - maybe you specified the license server with a partial domain name ("our-company-server") instead of a full domain name ("our-company-server.our-company.com"), and due to changes in...
Forum: CoCreate Modeling 02-22-2013, 04:55 AM
Replies: 2
Views: 3,625
Posted By clausb
Re: elan:

And "package" roughly correlates to what they call "namespace" in other languages.
Forum: Customization 06-22-2012, 03:50 AM
Replies: 3
Views: 3,931
Posted By clausb
Re: Call dialog from defun

It's been a while, but IIRC, you may want to call the dialog via the sd-call-cmds helper (see IKIT).
Forum: Customization 06-13-2012, 03:22 AM
Replies: 3
Views: 3,695
Posted By clausb
Re: Get basename of assembly group

oli is the name of a Lisp package, which is (kind of) equivalent to the concept of namespaces in other languages.
Forum: Customization 06-05-2012, 07:05 AM
Replies: 10
Views: 6,858
Posted By clausb
Re: Error in lisp: the stream is already close??

My proposal would be to get the two points *inside* GetInsertPointDlg, i.e. prompt the user for two points inside the same dialog, instead of calling the dialog twice.

Calling the dialog as...
Forum: Customization 06-05-2012, 06:22 AM
Replies: 10
Views: 6,858
Posted By clausb
Re: Error in lisp: the stream is already close??

What happens if you quote the GetInsertPointDlg symbol, for example like this:

(oli:sd-call-dialog 'GetInsertPointDlg)

OR

(oli:sd-call-dialog "GetInsertPointDlg")
Forum: Customization 06-05-2012, 12:40 AM
Replies: 10
Views: 6,858
Posted By clausb
Re: Error in lisp: the stream is already close??

Question for clarification: In the latest test.lsp file, we find:


(defun test()
(insertdev "C:\\eurocad\\VirtualComponent\\tmp\\FileGeometry2loadModeling.lsp" )
...
Forum: Customization 06-04-2012, 06:05 AM
Replies: 10
Views: 6,858
Posted By clausb
Re: Error in lisp: the stream is already close??

What happens if you load empty files instead of FileGeometry2loadModeling*.lsp?
Forum: Customization 06-04-2012, 05:04 AM
Replies: 10
Views: 6,858
Posted By clausb
Re: Error in lisp: the stream is already close??

Can you post the code for FileGeometry2loadModeling.lsp and FileGeometry2loadModeling_1.lsp?
Forum: CoCreate Modeling 05-27-2011, 11:01 PM
Replies: 5
Views: 5,326
Posted By clausb
Re: Redirect the output of the (display ...) command

Try this:


(let ((original-display (symbol-function 'display-value)))
(setf (symbol-function 'display-value) (lambda(&rest r)))
(oli:sd-dump-control-tree :filename "c:/temp/tree")
(setf...
Forum: CoCreate Modeling 05-26-2011, 04:32 AM
Replies: 5
Views: 5,326
Posted By clausb
Re: Redirect the output of the (display ...) command

For inspiration only, code completely untested:


(defun my-display(msg &rest r)
(format t "my-display: ~S ~S" msg r))

(let ((original-display (symbol-function 'display)))

(setf...
Forum: CoCreate Modeling 05-24-2011, 12:37 AM
Replies: 5
Views: 5,326
Posted By clausb
Re: Redirect the output of the (display ...) command

Why don't you just write to a file directly? For example:


(defun to-display()
(display "foo")
(display "bar"))

(defun to-file()
(with-open-file (out "logfile.txt"...
Forum: CoCreate Modeling 02-06-2011, 10:28 PM
Replies: 7
Views: 6,768
Posted By clausb
Re: I Feel Like an Absolute ALIEN!

I started at HP's Mechanical Design Division in late 1991. At that point, the SolidDesigner project had already been running for some time. I believe the project started in 1989 or so. v1.0 was...
Forum: Customization 01-25-2011, 03:54 AM
Replies: 2
Views: 4,036
Posted By clausb
Re: Comparison of CoCreate LISP and AutoLISP

Actually, AutoLISP is not based on Common Lisp, and therefore is much more limited in expressiveness as a language. For example, AutoLISP doesn't have macros, arrays, let bindings et cetera (at least...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -8. The time now is 06:59 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.