Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-28-2008, 12:47 PM
tan125 tan125 is online now
Registered User
 
Join Date: 08-30-2007
Location: PA
Posts: 15
Send a message via Yahoo to tan125
list macros from Powershell?

Using vbscript, you can use vbld_AddDelimValue to set a temporary macro to the value of a list. Is there a method/way to do this within a Powershell step? Is there an equivalent Powershell command that does the same thing?
Reply With Quote
  #2  
Old 05-28-2008, 01:20 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
PowerShell is not currently integrated to the same degree as Active Scripting languages (VBScript, JScript, Python, RubyScript, etc.), so it doesn't have access to the live VBP object model for creating/updating temporary macros, etc. (deeper integration with PowerShell is something we'd like to add in the future).

From a PowerShell script, you can create another instance of the VBP object model and create/update a global macro, which would then be accessible from the calling VBP project (see attached sample).
Attached Files
File Type: bld ps_global.bld (1.7 KB, 2310 views)
Reply With Quote
  #3  
Old 05-28-2008, 01:45 PM
tan125 tan125 is online now
Registered User
 
Join Date: 08-30-2007
Location: PA
Posts: 15
Send a message via Yahoo to tan125
Thanks!

I assume the "2" in $global = $app.Macros(2) refers to the type of macro being created (in this case, global)?

-Tom
Reply With Quote
  #4  
Old 05-28-2008, 01:55 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Correct.
http://www.visualbuild.com/Manual/macrosproperty.htm
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 10:41 AM.


Copyright © 1999-2023 Kinook Software, Inc.