几何尺寸与公差论坛

 找回密码
 注册
查看: 829|回复: 0

【转帖】examples macros

[复制链接]
发表于 2009-4-13 10:46:12 | 显示全部楼层 |阅读模式
examples macros
would it be useful to make more api examples?
what sort of features would you be looking for?
regards,
greg jankowski
solidworks corp.
edited: 01/31/2008 at 04:40 pm by greg jankowski
i think it would be useful to have a central repository for macros rather than having to scour the web. it's nice that there are some on 3dcc now, but they are pretty sparse. there are probably just too many different macros to request, or they are too specialized for one application. however, the ones that i use the most are: create isometric views (a macro that creates four iso views), and scale 1 to 1 (a macro that scales the model to actual size based on your screen resolution).
dan riffell, cswp
projects coordinator
eltron research & development
many of the macro examples i have seen seem programmatically awkward and clunky.
i think there should be more examples that are shorter and simpler and structured to reinforce good programing habits. some users would learn more if the examples tried to accomplish less. annotations should be more explicit, more frequent, more detailed.
as an experienced programmer, i can walk through most of the examples and get what i need. however, i have helped beginners sort out example code and it certainly could have been easier for them if the code was built more like a lesson.
solidworks api for dummies???
reswug leader
rohnert park, ca
more examples would be much appriciated. in general i think there are too many calls in the api help without examples and i agree with roland that they should be shorter and simpler.
jorn bjarning
cswp
cad & plm consultant
sw2008 sp5 / sw2009 sp2
definitely. i would expect sw to have a small team, specifically dedicated to creating examples on how to use the various api's correctly. to me it looks like an afterthought where every once in a while a random employee copies some haphazrdly written code into the sample code page. as far as i'm concerned, the api is one of the most compelling reasons to buy and use solidworks especially since autocad whom i'm sure sw is trying to usurp the customer base from, has an excellent and well documented api set.
i'd also like to see a section specifically dedicated to the .net api and add-in creation. i'd also like to see something done about the macro creation limitations. i mean surely something more elegant can be implemeted rather than just not including the commands performed in the macro leaving it up to the user to decypher what is and what isn't automated by his new macro.
i guarantee you that more sw seats will be sold when users are not completely overwhelmed when trying to customise their powerful new investment. let alone completely frustrated to the point where they give up and settle for the functionality offered by the "out of the box" installation.
dale
dale levesque
d. m. levesque & associates
cad consultants
dmleves at telus dot net
sw office pro 2008 sp2.0
dell xps m2010 2 gb ram
intel core2 cpu t7200 @ 2ghz
windows vista ultimate sp1
ati mobility radeon x1800
hi,
i generally find your macros and examples very helpful. like some other members indicated it would be very convenient if more material was available and not only in the form of macros but in the form of addins too.
saying that, i feel like i have to compliment you, for your good work on the sw api.
regards,
--stav.
in this world i am nobody...
and nobody is perfect ;) !!!
---------
solidworks office 2008 sp4.0
dell precision pws390
nvidia quadro fx 3450/4000 sdi
edited: 02/01/2008 at 07:24 am by stavros antoniou
the one thing i'd like to see with macros in solidworks api help is much more detail about the functions, and examples on how to use them.
yes, it would be more useful to make more api examples in general too.   
selection manager!
more and better examples of managing selections. probably the most common stumper for newbie programmers. i see lots of posts with a common theme of "i recorded a macro to select hings and it doesn't work twice in a row".
i agree with matthew and roland's suggested macro examples. i have spent hours at a time searching for information on how to do certain things through the api when a simple example from sw would have cleared it up, thankfully their eu api support have been pretty helpful and have always got back to me within a couple of hours.
examples of doing things is one thing but more importantly the reasons for doing it a certain way needs to be better explained, custom property manipulation and selections can be handled a few different ways, so why do something one way as opposed to another?. also more info/samples on creating addins, setting up toolbars and property manager pages would be nice
i wonder when these examples will possibly be made available, surely api support have loads of samples that they could currently share.
anyhow, i'll gladly welcome any new examples.
dmct
i agree with everyone here. the functions in the api are not always as intuitive as one would hope. the easiest way to correct this is to provide examples. i believe every function should have an example.
i also agree with dan, i use the create isometric views and scale 1 to 1 the most. i love the scale 1:1 macro. i probably use that 5 times a day (new product development). i wrote a macro that auto-tolerances my drawings for me per certain standards. i use that one a lot too.
sw2k7 sp5.0, pdmwe
intel core2 quad cpu q6600@2.40 ghz, 3.5gb ram, nvidia quadro fx 3500
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-24 03:09 , Processed in 0.038708 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表