- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Ok fellow users......stock models.......ffs.......I can't seem to get an .stl file to export for the life of me. I have tried using the export menu, I have tried the manual typing in of the command in the echo commands, and I have tried various macro's. What happens is when I try to export, it will inevitably crash the session at some point in the process. I can successfully export smaller stock models but when it comes to cores and cavities.....no dice.
So what I have noticed is when it exports, it will export as a metric model (we use standard here) and therefore the stock model will be blown up 25.4 times its regular size. I can only assume that is part of the problem. So my question to you guys is, can I adjust the export settings via the options menu or a macro? Can someone have a look at this macro (which I got from a post on here from one of you rock stars!) and maybe there is a line I can add to export in standard measurements?
Thanks guys you all rule!!
Function Main (STRING $Selected_stockmodel) {
DEACTIVATE WORKPLANE
$$STRING $Selected_stockmodel = '1' // to debug macro
string $dir = project_pathname(0) + "/_STOCK MODEL/"
MKDIR $dir
string $extFile =""
string $msg =""
string list $mTypeExport= {"DMT","STL","STKMD"}
int $Opt = INPUT CHOICE $mTypeExport "Select Template Format"
switch $Opt {
case 0
$extFile = ".dmt"
break
case 1
$extFile = ".stl"
break
case 2
$extFile = ".stkmd"
break
}
string $file = project_pathname(0) + "/_STOCK MODEL/" + $Selected_stockmodel + $extFile
BOOL exist_stock = entity_exists(entity('StockModel',$Selected_stockmodel))
IF exist_stock {
$msg = " File : '" + $file + CRLF + CRLF
INFOBOX NEW "Export Stock Model"
INFOBOX STYLE "NORMAL"
INFOBOX APPEND $msg
ACTIVATE STOCKMODEL $Selected_stockmodel
EDIT STOCKMODEL ; DRAW ALL
Export stockmodel_shading ; $file
$msg = "FINISHED !!"
INFOBOX APPEND $msg
}
}
Solved! Go to Solution.