# Get runtime ressource Perspective/Styles/stylesheet.css is missing from IgnitionGateway.get().getProjectManager().getProject(projectName).get().getAllResources()

**URL:** <https://forum.inductiveautomation.com/t/get-runtime-ressource-perspective-styles-stylesheet-css-is-missing-from-ignitiongateway-get-getprojectmanager-getproject-projectname-get-getallresources/77288>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [August 2, 2023, 2:31pm UTC](https://forum.inductiveautomation.com/t/get-runtime-ressource-perspective-styles-stylesheet-css-is-missing-from-ignitiongateway-get-getprojectmanager-getproject-projectname-get-getallresources/77288 "2023-08-02T14:31:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [August 2, 2023, 2:31pm UTC](https://forum.inductiveautomation.com/t/get-runtime-ressource-perspective-styles-stylesheet-css-is-missing-from-ignitiongateway-get-getprojectmanager-getproject-projectname-get-getallresources/77288/1 "2023-08-02T14:31:41Z")

</div>

I try to retrieve the runtime **Perspective/Styles/stylesheet.css**  
(in a projet with inherited projects)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/4/f4918299f1163c642ae1ef5bb9d995378d87bc05.png)

**stylesheet.css** is missing with the following script:

```auto
from com.inductiveautomation.ignition.gateway import IgnitionGateway
context = IgnitionGateway.get()
projectManager = context.getProjectManager()
runtimeProject = projectManager.getProject(projectName).get()
runtimeProject.getAllResources
# Retrieve all ressources from project and its parents
allProjectResources = runtimeProject.getAllResources()

```

is there any way to retrieve it ?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 2, 2023, 2:51pm UTC](https://forum.inductiveautomation.com/t/get-runtime-ressource-perspective-styles-stylesheet-css-is-missing-from-ignitiongateway-get-getprojectmanager-getproject-projectname-get-getallresources/77288/2 "2023-08-02T14:51:50Z")

</div>

Sure it is.

```auto
	from com.inductiveautomation.ignition.gateway import IgnitionGateway
	from com.inductiveautomation.ignition.common.project.resource import ProjectResourceId, ResourceType
	from java.lang import String
	context = IgnitionGateway.get()
	projectManager = context.getProjectManager()
	projectName = system.project.getProjectName()
	runtimeProject = projectManager.getProject(projectName).get()
	stylesheetType = ResourceType("com.inductiveautomation.perspective", "stylesheet")
	
	# option 1 (worse)
	allResources = runtimeProject.getAllResources()
#	for id, resource in allResources.items():
# system.perspective.print(str(id))
	stylesheetId = ProjectResourceId(projectName, stylesheetType, "")
	stylesheet = allResources[stylesheetId]
	
	# option 2 (better)
	stylesheet = runtimeProject.getSingletonResource(stylesheetType).get()
	
	
	system.perspective.print(String(stylesheet.getData("stylesheet.css"), "utf-8"))

```

```auto
07:51:29.241 [Browser Thread: 0f5d5db5-b048-4f64-951e-b05773b5c913] INFO Perspective.Designer.Workspace - /* Direct stylesheet authoring is an advanced feature. Knowledge of CSS required.*/

```

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [September 20, 2025, 10:20am UTC](https://forum.inductiveautomation.com/t/get-runtime-ressource-perspective-styles-stylesheet-css-is-missing-from-ignitiongateway-get-getprojectmanager-getproject-projectname-get-getallresources/77288/3 "2025-09-20T10:20:40Z")

</div>

runtimeProjet is not accessible in the same way in **Ignition 8.3**?

```java
runtimeProject = projectManager.getProject(projectName).get()

```

An error is generated:  
com.inductiveautomation.ignition.gateway.project.I' object has no attribute 'getProject'

I will try ResourceCollectionManager

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 20, 2025, 1:07pm UTC](https://forum.inductiveautomation.com/t/get-runtime-ressource-perspective-styles-stylesheet-css-is-missing-from-ignitiongateway-get-getprojectmanager-getproject-projectname-get-getallresources/77288/4 "2025-09-20T13:07:02Z")

</div>

I think you’ll use `find` now: [ResourceCollectionManager](https://files.inductiveautomation.com/sdk/javadoc/ignition83/8.3.0/com/inductiveautomation/ignition/gateway/resourcecollection/ResourceCollectionManager.html#find(java.lang.String))

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [September 20, 2025, 1:20pm UTC](https://forum.inductiveautomation.com/t/get-runtime-ressource-perspective-styles-stylesheet-css-is-missing-from-ignitiongateway-get-getprojectmanager-getproject-projectname-get-getallresources/77288/5 "2025-09-20T13:20:32Z")

</div>

> [@paul-griffith](#):
>
> `ResourceType`

Yes it works after using the new ResourceType class instead of the deprecated one...
