process scripting

process scripting

Sebastian_Eiche
Mentor Mentor
1,710 Views
9 Replies
Message 1 of 10

process scripting

Sebastian_Eiche
Mentor
Mentor

Hi,
I trying out the vbscripts in the process manager. I'm using it to search for foldedbeams and so on without using a modelrole. Does anyone try to search for a special profile? I want a script only for u-profiles, does someone have some experience with such a script?

And another question:


In the labeling dialog, there's the opportunity to use a VBscript, does anyone know how to use it?

labeling script.jpg


Sebastian Eiche
Application Engineer @Mensch und Maschine acadGraph

EESignature

If this information was helpful, please use the Accept as Solution function, this make it easier for other users

0 Likes
Accepted solutions (1)
1,711 Views
9 Replies
Replies (9)
Message 2 of 10

Anonymous
Not applicable
Accepted solution

I use it for secondary parts drawings.

 

Capture.JPG

 

DSTVType for U-Profils is kU

 

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Returns true for U profiles
Function checkElement(Obj)
    checkElement = False
    'Verify only for beams
    If Obj.IsKindOf(kBeamClass) = True Then
        If Obj.getProfType.getDSTVValues.DSTVType = kU Then
		checkElement = True
        End If
    End If
End Function

Hope it can help...

 

 

Regards

 

Message 3 of 10

Sebastian_Eiche
Mentor
Mentor

where do you found this strings? I have look in the documentation and found nothing belonging to this.


Sebastian Eiche
Application Engineer @Mensch und Maschine acadGraph

EESignature

If this information was helpful, please use the Accept as Solution function, this make it easier for other users

0 Likes
Message 4 of 10

Anonymous
Not applicable

Don't remember... Inspired by an exemple and partially wrote by myself, 

0 Likes
Message 5 of 10

Buxtehude1963
Advocate
Advocate

Hi,

 

I would use scripts, and I had the same problem in the previous post.
But I do not have U profile, but others: where can I find other DSTVType codes?

 

Thanks

0 Likes
Message 6 of 10

Sebastian_Eiche
Mentor
Mentor

I didn't see the post...maybe to late, but could be helpful:

have a look in the Management Tool--Table_editor--AstorDetails--Beamtype.
I think this is what you're looking for.


Sebastian Eiche
Application Engineer @Mensch und Maschine acadGraph

EESignature

If this information was helpful, please use the Accept as Solution function, this make it easier for other users

0 Likes
Message 7 of 10

ChristianBlei
Advisor
Advisor

Hi, 

The values Alerat doesnot recall where he found them are the constants in the table eDSTVType of both 

 Interop.AstSTEELAUTOMATIONLib5 and Interop.DSCPROFILESACCESSCOMLib libraries of the COM API. The enums are

 

eDSTVType

kI=0

kL=1

kU=2

kB= 3

kRU=4

kRO=5

kM=6

kC=7

kT=8

kZ=9

kKA=10

kKF=11

kKQ=12

kCCS=13

kPL1=14

kPL2=15

kSO=16

kCSE=17

In the script Alerat used he checked if the DSTV type of of profile is kU which is a U shape.

 If Obj.getProfType.getDSTVValues.DSTVType = kU Then

The script is written in VB.

 

Christian

 

 

Christian Blei
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw
Message 8 of 10

alickomay
Collaborator
Collaborator

i just used this thread to help make a script to use a a certing drawing style for I section

just had to copy alerat  scrip an change ku to ki

 

but it was not working and i spent a lot of time  trying to figure out y  

turns out u need to restart AS after making a change to a script in the style map 

0 Likes
Message 9 of 10

ChristianBlei
Advisor
Advisor

Hi,

 

from what I recall a restart is not necessary, but you have to close the drawing style after the editing and saving of the sript and update defaults in settings.

 

HTH,

Christian Blei

 

 

Christian Blei
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw
0 Likes
Message 10 of 10

Sebastian_Eiche
Mentor
Mentor

By using the scripts in the process manager I have the same to do. 

Restart AS is sometimes necessary in my opinion


Sebastian Eiche
Application Engineer @Mensch und Maschine acadGraph

EESignature

If this information was helpful, please use the Accept as Solution function, this make it easier for other users

0 Likes